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{
|
||||
"base64": func(input string) string {
|
||||
enc := base64.StdEncoding.WithPadding(base64.NoPadding)
|
||||
return enc.EncodeToString([]byte(input))
|
||||
return b64.EncodeToString([]byte(input))
|
||||
},
|
||||
|
||||
"host_ip": func() (s string) {
|
||||
|
||||
Reference in New Issue
Block a user