type encoding/json/internal/jsonopts.Struct
86 uses
encoding/json/internal/jsonopts (current package)
options.go#L27: type Struct struct {
options.go#L53: var DefaultOptionsV2 = Struct{
options.go#L61: var DefaultOptionsV1 = Struct{
options.go#L68: func (*Struct) JSONOptions(internal.NotForPublicUse) {}
options.go#L72: var GetUnknownOption = func(Struct, Options) (any, bool) { panic("unknown option") }
options.go#L76: structOpts, ok := opts.(*Struct)
options.go#L78: var structOpts2 Struct
options.go#L125: var JoinUnknownOption = func(Struct, Options) Struct { panic("unknown option") }
options.go#L127: func (dst *Struct) Join(srcs ...Options) {
options.go#L152: case *Struct:
options.go#L184: func (s *Struct) InitializeMultiline() {
options.go#L198: func ChangedWhitespace(s1, s2 Struct) bool {
encoding/json/jsontext
decode.go#L87: jsonopts.Struct
decode.go#L152: opts2 := jsonopts.Struct{} // avoid mutating d.Struct in case it is part of opts
decode.go#L169: func (d *decoderState) options() *jsonopts.Struct { return &d.Struct }
encode.go#L57: jsonopts.Struct
encode.go#L124: opts2 := jsonopts.Struct{} // avoid mutating e.Struct in case it is part of opts
encode.go#L144: func (e *encoderState) options() *jsonopts.Struct { return &e.Struct }
errors.go#L75: options() *jsonopts.Struct
encoding/json/v2
arshal.go#L227: func marshalEncode(out *jsontext.Encoder, in any, mo *jsonopts.Struct) (err error) {
arshal.go#L446: func unmarshalDecode(in *jsontext.Decoder, out any, uo *jsonopts.Struct, last bool) (err error) {
arshal.go#L516: marshaler = func(*jsontext.Encoder, addressableValue, *jsonopts.Struct) error
arshal.go#L517: unmarshaler = func(*jsontext.Decoder, addressableValue, *jsonopts.Struct) error
arshal_any.go#L32: func marshalValueAny(enc *jsontext.Encoder, val any, mo *jsonopts.Struct) error {
arshal_any.go#L64: func unmarshalValueAny(dec *jsontext.Decoder, uo *jsonopts.Struct) (any, error) {
arshal_any.go#L107: func marshalObjectAny(enc *jsontext.Encoder, obj map[string]any, mo *jsonopts.Struct) error {
arshal_any.go#L177: func unmarshalObjectAny(dec *jsontext.Decoder, uo *jsonopts.Struct) (map[string]any, error) {
arshal_any.go#L223: func marshalArrayAny(enc *jsontext.Encoder, arr []any, mo *jsonopts.Struct) error {
arshal_any.go#L266: func unmarshalArrayAny(dec *jsontext.Decoder, uo *jsonopts.Struct) ([]any, error) {
arshal_default.go#L128: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L160: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L213: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L257: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L335: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L378: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L470: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L492: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L569: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L591: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L659: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L698: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L797: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L958: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1122: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1288: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1399: unmarshal = func(dec *jsontext.Decoder, _ addressableValue, _ *jsonopts.Struct) error {
arshal_default.go#L1477: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1541: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1625: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1653: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1727: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1755: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1811: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1860: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1975: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1978: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_embedded.go#L40: func marshalEmbeddedFallbackAll(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct, f *structField, insertUnquotedName func([]byte) bool) error {
arshal_embedded.go#L169: func unmarshalEmbeddedFallbackNext(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct, f *structField, quotedName, unquotedName []byte) error {
arshal_funcs.go#L94: fnc func(*Coder, addressableValue, *jsonopts.Struct) error
arshal_funcs.go#L114: func (a *typedArshalers[Coder]) lookup(fnc func(*Coder, addressableValue, *jsonopts.Struct) error, t reflect.Type) (func(*Coder, addressableValue, *jsonopts.Struct) error, bool) {
arshal_funcs.go#L122: return v.(func(*Coder, addressableValue, *jsonopts.Struct) error), true
arshal_funcs.go#L127: var fncs []func(*Coder, addressableValue, *jsonopts.Struct) error
arshal_funcs.go#L145: fnc = func(c *Coder, v addressableValue, o *jsonopts.Struct) error {
arshal_funcs.go#L156: return v.(func(*Coder, addressableValue, *jsonopts.Struct) error), true
arshal_funcs.go#L173: fnc: func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_funcs.go#L214: fnc: func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_funcs.go#L260: fnc: func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_funcs.go#L295: fnc: func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_methods.go#L179: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_methods.go#L207: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) (err error) {
arshal_methods.go#L232: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_methods.go#L264: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_methods.go#L301: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_methods.go#L336: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_methods.go#L362: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_time.go#L46: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_time.go#L78: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_time.go#L136: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) (err error) {
arshal_time.go#L161: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) (err error) {
errors.go#L114: err := fmt.Errorf("invalid format flag %q", c.Options().(*jsonopts.Struct).Format)
options.go#L78: var dst jsonopts.Struct
options.go#L275: jsonopts.GetUnknownOption = func(src jsonopts.Struct, zero jsonopts.Options) (any, bool) {
options.go#L291: jsonopts.JoinUnknownOption = func(dst jsonopts.Struct, src jsonopts.Options) jsonopts.Struct {