mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-23 19:22:03 -08:00
13 lines
251 B
Go
13 lines
251 B
Go
|
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)},
|
||
|
}
|