lang: funcs: Module name should be public

For consistency with the rest of the core functions.
This commit is contained in:
James Shubin
2019-07-29 11:17:43 -04:00
parent e68e4e786d
commit 09ca6d11ad
4 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ import (
) )
func init() { func init() {
funcs.ModuleRegister(moduleName, "abspath", func() interfaces.Func { return &AbsPathFunc{} }) // must register the func and name funcs.ModuleRegister(ModuleName, "abspath", func() interfaces.Func { return &AbsPathFunc{} }) // must register the func and name
} }
const ( const (

View File

@@ -18,6 +18,6 @@
package coredeploy package coredeploy
const ( const (
// moduleName is the prefix given to all the functions in this module. // ModuleName is the prefix given to all the functions in this module.
moduleName = "deploy" ModuleName = "deploy"
) )

View File

@@ -28,7 +28,7 @@ import (
) )
func init() { func init() {
funcs.ModuleRegister(moduleName, "readfile", func() interfaces.Func { return &ReadFileFunc{} }) // must register the func and name funcs.ModuleRegister(ModuleName, "readfile", func() interfaces.Func { return &ReadFileFunc{} }) // must register the func and name
} }
// ReadFileFunc is a function that reads the full contents from a file in our // ReadFileFunc is a function that reads the full contents from a file in our

View File

@@ -27,7 +27,7 @@ import (
) )
func init() { func init() {
funcs.ModuleRegister(moduleName, "readfileabs", func() interfaces.Func { return &ReadFileAbsFunc{} }) // must register the func and name funcs.ModuleRegister(ModuleName, "readfileabs", func() interfaces.Func { return &ReadFileAbsFunc{} }) // must register the func and name
} }
// ReadFileAbsFunc is a function that reads the full contents from a file in our // ReadFileAbsFunc is a function that reads the full contents from a file in our