mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-22 11:12:44 +01:00
12 lines
261 B
Go
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)},
|
||
|
}
|