blob: 981da6962656b248f5d0083b29aee1d46cebdfd6 (
plain) (
tree)
|
|
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)},
}
|