blob: acc29e6a4785fc1f3044e1a5cb36e5280670a648 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
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)},
}
|