Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ab136be68 |
@ -190,8 +190,7 @@ func (ctx *renderContext) TemplateFuncs() map[string]any {
|
|||||||
|
|
||||||
for name, method := range map[string]any{
|
for name, method := range map[string]any{
|
||||||
"base64": func(input string) string {
|
"base64": func(input string) string {
|
||||||
enc := base64.StdEncoding.WithPadding(base64.NoPadding)
|
return b64.EncodeToString([]byte(input))
|
||||||
return enc.EncodeToString([]byte(input))
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"host_ip": func() (s string) {
|
"host_ip": func() (s string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user