5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-29 12:45:40 +00:00
matterbridge/vendor/github.com/d5/tengo/v2/stdlib/hex.go

13 lines
251 B
Go
Raw Normal View History

2020-01-09 20:52:19 +00:00
package stdlib
import (
"encoding/hex"
"github.com/d5/tengo/v2"
)
var hexModule = map[string]tengo.Object{
"encode": &tengo.UserFunction{Value: FuncAYRS(hex.EncodeToString)},
"decode": &tengo.UserFunction{Value: FuncASRYE(hex.DecodeString)},
}