MCPcopy
hub / github.com/nats-io/nats.go / DefaultEncoder

Struct DefaultEncoder

encoders/builtin/default_enc.go:31–33  ·  view source on GitHub ↗

DefaultEncoder implementation for EncodedConn. This encoder will leave []byte and string untouched, but will attempt to turn numbers into appropriate strings that can be decoded. It will also properly encoded and decode bools. If will encode a struct, but if you want to properly handle structures yo

Source from the content-addressed store, hash-verified

29//
30// Deprecated: Encoded connections are no longer supported.
31type DefaultEncoder struct {
32 // Empty
33}
34
35var trueB = []byte("true")
36var falseB = []byte("false")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected