From 2453eec9ada84015d0754c3fc12314f7ab09eedb Mon Sep 17 00:00:00 2001 From: Roman Suvorov Date: Thu, 19 Dec 2024 10:42:50 +0100 Subject: [PATCH] change a method name according to code style, register method --- internal/transformations/base64encode.go | 2 +- internal/transformations/transformations.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/transformations/base64encode.go b/internal/transformations/base64encode.go index 60dfa8db7..168880d93 100644 --- a/internal/transformations/base64encode.go +++ b/internal/transformations/base64encode.go @@ -7,7 +7,7 @@ import ( "encoding/base64" ) -func base64Encode(data string) (string, bool, error) { +func base64encode(data string) (string, bool, error) { src := []byte(data) return base64.StdEncoding.EncodeToString(src), true, nil diff --git a/internal/transformations/transformations.go b/internal/transformations/transformations.go index 704e04ad1..69aad6a1b 100644 --- a/internal/transformations/transformations.go +++ b/internal/transformations/transformations.go @@ -30,6 +30,7 @@ func GetTransformation(name string) (plugintypes.Transformation, error) { func init() { Register("base64Decode", base64decode) Register("base64DecodeExt", base64decodeext) + Register("base64Encode", base64encode) Register("cmdLine", cmdLine) Register("compressWhitespace", compressWhitespace) Register("cssDecode", cssDecode)