MCPcopy Create free account
hub / github.com/bet365/jingo / JSONEncoder

Interface JSONEncoder

structencoder.go:484–486  ·  view source on GitHub ↗

JSONEncoder works with the `.encoder` option. Fields can implement this to encode their own JSON string straight into the working buffer. This can be useful if you're working with interface fields at runtime.

Source from the content-addressed store, hash-verified

482// JSONEncoder works with the `.encoder` option. Fields can implement this to encode their own JSON string straight
483// into the working buffer. This can be useful if you're working with interface fields at runtime.
484type JSONEncoder interface {
485 JSONEncode(*Buffer)
486}
487
488// JSONMarshaler works with the `.encoder` option. Fields can implement this to encode their own JSON string straight
489// into the provided `io.Writer`. This is useful if you require the functionality of `JSONEncoder` but don't want the hard

Callers 1

optInstrEncoderMethod · 0.65

Implementers 1

encode0jingo_test.go

Calls

no outgoing calls

Tested by

no test coverage detected