1
0

encoding.json.go 260 B

123456789101112131415
  1. package packages
  2. import (
  3. "encoding/json"
  4. "reflect"
  5. "github.com/mattn/anko/env"
  6. )
  7. func init() {
  8. env.Packages["encoding/json"] = map[string]reflect.Value{
  9. "Marshal": reflect.ValueOf(json.Marshal),
  10. "Unmarshal": reflect.ValueOf(json.Unmarshal),
  11. }
  12. }