5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-02 05:51:36 +00:00
matterbridge/vendor/github.com/d5/tengo/stdlib/hex.go
Wim 0bc159341d
Update vendor (#932)
* Update vendor

* Fix godiscord api change
2019-10-27 01:45:57 +02:00

12 lines
261 B
Go

package stdlib
import (
"encoding/hex"
"github.com/d5/tengo/objects"
)
var hexModule = map[string]objects.Object{
"encode": &objects.UserFunction{Value: FuncAYRS(hex.EncodeToString)},
"decode": &objects.UserFunction{Value: FuncASRYE(hex.DecodeString)},
}