diff --git a/lang/funcs/core/deploy/abspath_func.go b/lang/funcs/core/deploy/abspath_func.go index e31f7f71..56ad2fed 100644 --- a/lang/funcs/core/deploy/abspath_func.go +++ b/lang/funcs/core/deploy/abspath_func.go @@ -27,7 +27,7 @@ import ( ) 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 ( diff --git a/lang/funcs/core/deploy/deploy.go b/lang/funcs/core/deploy/deploy.go index 3689df4a..b9608522 100644 --- a/lang/funcs/core/deploy/deploy.go +++ b/lang/funcs/core/deploy/deploy.go @@ -18,6 +18,6 @@ package coredeploy const ( - // moduleName is the prefix given to all the functions in this module. - moduleName = "deploy" + // ModuleName is the prefix given to all the functions in this module. + ModuleName = "deploy" ) diff --git a/lang/funcs/core/deploy/readfile_func.go b/lang/funcs/core/deploy/readfile_func.go index 54dbf01e..870538d3 100644 --- a/lang/funcs/core/deploy/readfile_func.go +++ b/lang/funcs/core/deploy/readfile_func.go @@ -28,7 +28,7 @@ import ( ) 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 diff --git a/lang/funcs/core/deploy/readfileabs_func.go b/lang/funcs/core/deploy/readfileabs_func.go index 307c9f00..cd6aa658 100644 --- a/lang/funcs/core/deploy/readfileabs_func.go +++ b/lang/funcs/core/deploy/readfileabs_func.go @@ -27,7 +27,7 @@ import ( ) 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