1
0
Fork 0
mirror of https://github.com/Luzifer/korvike.git synced 2024-11-08 23:40:05 +00:00
korvike/functions/func_base64.go
Knut Ahlers 2fd0bf97a1
Add b64encode as a function
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-05-31 12:50:34 +02:00

9 lines
193 B
Go

package functions
import "encoding/base64"
func init() {
registerFunction("b64encode", func(name string, v ...string) string {
return base64.StdEncoding.EncodeToString([]byte(name))
})
}