encoding-json.go 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Code generated by 'yaegi extract encoding/json'. DO NOT EDIT.
  2. package symbols
  3. import (
  4. "encoding/json"
  5. "reflect"
  6. )
  7. func init() {
  8. Symbols["encoding/json/json"] = map[string]reflect.Value{
  9. // function, constant and variable definitions
  10. "Compact": reflect.ValueOf(json.Compact),
  11. "HTMLEscape": reflect.ValueOf(json.HTMLEscape),
  12. "Indent": reflect.ValueOf(json.Indent),
  13. "Marshal": reflect.ValueOf(json.Marshal),
  14. "MarshalIndent": reflect.ValueOf(json.MarshalIndent),
  15. "NewDecoder": reflect.ValueOf(json.NewDecoder),
  16. "NewEncoder": reflect.ValueOf(json.NewEncoder),
  17. "Unmarshal": reflect.ValueOf(json.Unmarshal),
  18. "Valid": reflect.ValueOf(json.Valid),
  19. // type definitions
  20. "Decoder": reflect.ValueOf((*json.Decoder)(nil)),
  21. "Delim": reflect.ValueOf((*json.Delim)(nil)),
  22. "Encoder": reflect.ValueOf((*json.Encoder)(nil)),
  23. "InvalidUTF8Error": reflect.ValueOf((*json.InvalidUTF8Error)(nil)),
  24. "InvalidUnmarshalError": reflect.ValueOf((*json.InvalidUnmarshalError)(nil)),
  25. "Marshaler": reflect.ValueOf((*json.Marshaler)(nil)),
  26. "MarshalerError": reflect.ValueOf((*json.MarshalerError)(nil)),
  27. "Number": reflect.ValueOf((*json.Number)(nil)),
  28. "RawMessage": reflect.ValueOf((*json.RawMessage)(nil)),
  29. "SyntaxError": reflect.ValueOf((*json.SyntaxError)(nil)),
  30. "Token": reflect.ValueOf((*json.Token)(nil)),
  31. "UnmarshalFieldError": reflect.ValueOf((*json.UnmarshalFieldError)(nil)),
  32. "UnmarshalTypeError": reflect.ValueOf((*json.UnmarshalTypeError)(nil)),
  33. "Unmarshaler": reflect.ValueOf((*json.Unmarshaler)(nil)),
  34. "UnsupportedTypeError": reflect.ValueOf((*json.UnsupportedTypeError)(nil)),
  35. "UnsupportedValueError": reflect.ValueOf((*json.UnsupportedValueError)(nil)),
  36. // interface wrapper definitions
  37. "_Marshaler": reflect.ValueOf((*_encoding_json_Marshaler)(nil)),
  38. "_Token": reflect.ValueOf((*_encoding_json_Token)(nil)),
  39. "_Unmarshaler": reflect.ValueOf((*_encoding_json_Unmarshaler)(nil)),
  40. }
  41. }
  42. // _encoding_json_Marshaler is an interface wrapper for Marshaler type
  43. type _encoding_json_Marshaler struct {
  44. IValue interface{}
  45. WMarshalJSON func() ([]byte, error)
  46. }
  47. func (W _encoding_json_Marshaler) MarshalJSON() ([]byte, error) { return W.WMarshalJSON() }
  48. // _encoding_json_Token is an interface wrapper for Token type
  49. type _encoding_json_Token struct {
  50. IValue interface{}
  51. }
  52. // _encoding_json_Unmarshaler is an interface wrapper for Unmarshaler type
  53. type _encoding_json_Unmarshaler struct {
  54. IValue interface{}
  55. WUnmarshalJSON func(a0 []byte) error
  56. }
  57. func (W _encoding_json_Unmarshaler) UnmarshalJSON(a0 []byte) error { return W.WUnmarshalJSON(a0) }