From 09ca6d11ad88f5d3ebd6d1dfffc8a6bc5f4261a8 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Mon, 29 Jul 2019 11:17:43 -0400 Subject: [PATCH] lang: funcs: Module name should be public For consistency with the rest of the core functions. --- lang/funcs/core/deploy/abspath_func.go | 2 +- lang/funcs/core/deploy/deploy.go | 4 ++-- lang/funcs/core/deploy/readfile_func.go | 2 +- lang/funcs/core/deploy/readfileabs_func.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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