diff options
| -rw-r--r-- | funcs.go | 2 | ||||
| -rw-r--r-- | funcs/doc.go | 21 | ||||
| -rw-r--r-- | internal/funcs/aws.go (renamed from funcs/aws.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/aws_test.go (renamed from funcs/aws_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/base64.go (renamed from funcs/base64.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/base64_test.go (renamed from funcs/base64_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/coll.go (renamed from funcs/coll.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/coll_test.go (renamed from funcs/coll_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/conv.go (renamed from funcs/conv.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/conv_test.go (renamed from funcs/conv_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/crypto.go (renamed from funcs/crypto.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/crypto_test.go (renamed from funcs/crypto_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/data.go (renamed from funcs/data.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/data_test.go (renamed from funcs/data_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/env.go (renamed from funcs/env.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/env_test.go (renamed from funcs/env_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/file.go (renamed from funcs/file.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/file_test.go (renamed from funcs/file_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/filepath.go (renamed from funcs/filepath.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/filepath_test.go (renamed from funcs/filepath_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/filepath_unix_test.go (renamed from funcs/filepath_unix_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/filepath_windows_test.go (renamed from funcs/filepath_windows_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/funcs.go (renamed from funcs/funcs.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/gcp.go (renamed from funcs/gcp.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/gcp_test.go (renamed from funcs/gcp_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/math.go (renamed from funcs/math.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/math_test.go (renamed from funcs/math_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/net.go (renamed from funcs/net.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/net_test.go (renamed from funcs/net_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/path.go (renamed from funcs/path.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/path_test.go (renamed from funcs/path_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/random.go (renamed from funcs/random.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/random_test.go (renamed from funcs/random_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/regexp.go (renamed from funcs/regexp.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/regexp_test.go (renamed from funcs/regexp_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/semver.go (renamed from funcs/semver.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/semver_test.go (renamed from funcs/semver_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/sockaddr.go (renamed from funcs/sockaddr.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/sockaddr_test.go (renamed from funcs/sockaddr_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/strings.go (renamed from funcs/strings.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/strings_test.go (renamed from funcs/strings_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/test.go (renamed from funcs/test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/test_test.go (renamed from funcs/test_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/time.go (renamed from funcs/time.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/time_test.go (renamed from funcs/time_test.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/uuid.go (renamed from funcs/uuid.go) | 0 | ||||
| -rw-r--r-- | internal/funcs/uuid_test.go (renamed from funcs/uuid_test.go) | 0 |
47 files changed, 1 insertions, 22 deletions
@@ -5,8 +5,8 @@ import ( "text/template" "github.com/hairyhenderson/gomplate/v4/data" - "github.com/hairyhenderson/gomplate/v4/funcs" //nolint:staticcheck "github.com/hairyhenderson/gomplate/v4/internal/config" + "github.com/hairyhenderson/gomplate/v4/internal/funcs" ) // Funcs - diff --git a/funcs/doc.go b/funcs/doc.go deleted file mode 100644 index 69a01281..00000000 --- a/funcs/doc.go +++ /dev/null @@ -1,21 +0,0 @@ -/* -Package funcs is an internal package that provides gomplate namespaces and -functions to be used in 'text/template' templates. - -The different namespaces can be added individually: - - f := template.FuncMap{} - for k, v := range funcs.CreateMathFuncs(ctx) { - f[k] = v - } - for k, v := range funcs.CreateNetFuncs(ctx) { - f[k] = v - } - -Even though the functions are exported, these are not intended to be called -programmatically by external consumers, but instead only to be used as template -functions. - -Deprecated: This package will be made internal in a future major version. -*/ -package funcs diff --git a/funcs/aws.go b/internal/funcs/aws.go index ef95d612..ef95d612 100644 --- a/funcs/aws.go +++ b/internal/funcs/aws.go diff --git a/funcs/aws_test.go b/internal/funcs/aws_test.go index 2a1efc5d..2a1efc5d 100644 --- a/funcs/aws_test.go +++ b/internal/funcs/aws_test.go diff --git a/funcs/base64.go b/internal/funcs/base64.go index b25a9091..b25a9091 100644 --- a/funcs/base64.go +++ b/internal/funcs/base64.go diff --git a/funcs/base64_test.go b/internal/funcs/base64_test.go index f0cca886..f0cca886 100644 --- a/funcs/base64_test.go +++ b/internal/funcs/base64_test.go diff --git a/funcs/coll.go b/internal/funcs/coll.go index c8cb4dcc..c8cb4dcc 100644 --- a/funcs/coll.go +++ b/internal/funcs/coll.go diff --git a/funcs/coll_test.go b/internal/funcs/coll_test.go index 71900a59..71900a59 100644 --- a/funcs/coll_test.go +++ b/internal/funcs/coll_test.go diff --git a/funcs/conv.go b/internal/funcs/conv.go index 3361879d..3361879d 100644 --- a/funcs/conv.go +++ b/internal/funcs/conv.go diff --git a/funcs/conv_test.go b/internal/funcs/conv_test.go index b20f013c..b20f013c 100644 --- a/funcs/conv_test.go +++ b/internal/funcs/conv_test.go diff --git a/funcs/crypto.go b/internal/funcs/crypto.go index e3628fad..e3628fad 100644 --- a/funcs/crypto.go +++ b/internal/funcs/crypto.go diff --git a/funcs/crypto_test.go b/internal/funcs/crypto_test.go index 4d1b5660..4d1b5660 100644 --- a/funcs/crypto_test.go +++ b/internal/funcs/crypto_test.go diff --git a/funcs/data.go b/internal/funcs/data.go index 32f5b2da..32f5b2da 100644 --- a/funcs/data.go +++ b/internal/funcs/data.go diff --git a/funcs/data_test.go b/internal/funcs/data_test.go index c536beb3..c536beb3 100644 --- a/funcs/data_test.go +++ b/internal/funcs/data_test.go diff --git a/funcs/env.go b/internal/funcs/env.go index 0df63b3e..0df63b3e 100644 --- a/funcs/env.go +++ b/internal/funcs/env.go diff --git a/funcs/env_test.go b/internal/funcs/env_test.go index a6ee43ac..a6ee43ac 100644 --- a/funcs/env_test.go +++ b/internal/funcs/env_test.go diff --git a/funcs/file.go b/internal/funcs/file.go index 32af47cf..32af47cf 100644 --- a/funcs/file.go +++ b/internal/funcs/file.go diff --git a/funcs/file_test.go b/internal/funcs/file_test.go index d9fe5ccc..d9fe5ccc 100644 --- a/funcs/file_test.go +++ b/internal/funcs/file_test.go diff --git a/funcs/filepath.go b/internal/funcs/filepath.go index 726a1d7c..726a1d7c 100644 --- a/funcs/filepath.go +++ b/internal/funcs/filepath.go diff --git a/funcs/filepath_test.go b/internal/funcs/filepath_test.go index 0c4bbe80..0c4bbe80 100644 --- a/funcs/filepath_test.go +++ b/internal/funcs/filepath_test.go diff --git a/funcs/filepath_unix_test.go b/internal/funcs/filepath_unix_test.go index 381e7432..381e7432 100644 --- a/funcs/filepath_unix_test.go +++ b/internal/funcs/filepath_unix_test.go diff --git a/funcs/filepath_windows_test.go b/internal/funcs/filepath_windows_test.go index 190dfedb..190dfedb 100644 --- a/funcs/filepath_windows_test.go +++ b/internal/funcs/filepath_windows_test.go diff --git a/funcs/funcs.go b/internal/funcs/funcs.go index f5549e61..f5549e61 100644 --- a/funcs/funcs.go +++ b/internal/funcs/funcs.go diff --git a/funcs/gcp.go b/internal/funcs/gcp.go index 040a451b..040a451b 100644 --- a/funcs/gcp.go +++ b/internal/funcs/gcp.go diff --git a/funcs/gcp_test.go b/internal/funcs/gcp_test.go index 91ab54fb..91ab54fb 100644 --- a/funcs/gcp_test.go +++ b/internal/funcs/gcp_test.go diff --git a/funcs/math.go b/internal/funcs/math.go index 68316101..68316101 100644 --- a/funcs/math.go +++ b/internal/funcs/math.go diff --git a/funcs/math_test.go b/internal/funcs/math_test.go index 45681e21..45681e21 100644 --- a/funcs/math_test.go +++ b/internal/funcs/math_test.go diff --git a/funcs/net.go b/internal/funcs/net.go index 3342bd27..3342bd27 100644 --- a/funcs/net.go +++ b/internal/funcs/net.go diff --git a/funcs/net_test.go b/internal/funcs/net_test.go index 7c3afffe..7c3afffe 100644 --- a/funcs/net_test.go +++ b/internal/funcs/net_test.go diff --git a/funcs/path.go b/internal/funcs/path.go index 324f188a..324f188a 100644 --- a/funcs/path.go +++ b/internal/funcs/path.go diff --git a/funcs/path_test.go b/internal/funcs/path_test.go index a314933b..a314933b 100644 --- a/funcs/path_test.go +++ b/internal/funcs/path_test.go diff --git a/funcs/random.go b/internal/funcs/random.go index 6aa863be..6aa863be 100644 --- a/funcs/random.go +++ b/internal/funcs/random.go diff --git a/funcs/random_test.go b/internal/funcs/random_test.go index 7f166ffc..7f166ffc 100644 --- a/funcs/random_test.go +++ b/internal/funcs/random_test.go diff --git a/funcs/regexp.go b/internal/funcs/regexp.go index 66cbe4c4..66cbe4c4 100644 --- a/funcs/regexp.go +++ b/internal/funcs/regexp.go diff --git a/funcs/regexp_test.go b/internal/funcs/regexp_test.go index 181c74df..181c74df 100644 --- a/funcs/regexp_test.go +++ b/internal/funcs/regexp_test.go diff --git a/funcs/semver.go b/internal/funcs/semver.go index 0212c998..0212c998 100644 --- a/funcs/semver.go +++ b/internal/funcs/semver.go diff --git a/funcs/semver_test.go b/internal/funcs/semver_test.go index f10aad5c..f10aad5c 100644 --- a/funcs/semver_test.go +++ b/internal/funcs/semver_test.go diff --git a/funcs/sockaddr.go b/internal/funcs/sockaddr.go index e41fb162..e41fb162 100644 --- a/funcs/sockaddr.go +++ b/internal/funcs/sockaddr.go diff --git a/funcs/sockaddr_test.go b/internal/funcs/sockaddr_test.go index caf86bf8..caf86bf8 100644 --- a/funcs/sockaddr_test.go +++ b/internal/funcs/sockaddr_test.go diff --git a/funcs/strings.go b/internal/funcs/strings.go index f95e6bf5..f95e6bf5 100644 --- a/funcs/strings.go +++ b/internal/funcs/strings.go diff --git a/funcs/strings_test.go b/internal/funcs/strings_test.go index fdc64a47..fdc64a47 100644 --- a/funcs/strings_test.go +++ b/internal/funcs/strings_test.go diff --git a/funcs/test.go b/internal/funcs/test.go index 875cf631..875cf631 100644 --- a/funcs/test.go +++ b/internal/funcs/test.go diff --git a/funcs/test_test.go b/internal/funcs/test_test.go index 26909813..26909813 100644 --- a/funcs/test_test.go +++ b/internal/funcs/test_test.go diff --git a/funcs/time.go b/internal/funcs/time.go index ca02a35a..ca02a35a 100644 --- a/funcs/time.go +++ b/internal/funcs/time.go diff --git a/funcs/time_test.go b/internal/funcs/time_test.go index 8b2d6e4a..8b2d6e4a 100644 --- a/funcs/time_test.go +++ b/internal/funcs/time_test.go diff --git a/funcs/uuid.go b/internal/funcs/uuid.go index 2ad9d874..2ad9d874 100644 --- a/funcs/uuid.go +++ b/internal/funcs/uuid.go diff --git a/funcs/uuid_test.go b/internal/funcs/uuid_test.go index c21981ea..c21981ea 100644 --- a/funcs/uuid_test.go +++ b/internal/funcs/uuid_test.go |
