MCPcopy
hub / github.com/spf13/viper / Encoder

Method Encoder

encoding.go:40–40  ·  view source on GitHub ↗
(format string)

Source from the content-addressed store, hash-verified

38// [EncoderRegistry] returns an error if no [Encoder] is registered for the format.
39type EncoderRegistry interface {
40 Encoder(format string) (Encoder, error)
41}
42
43// DecoderRegistry returns an [Decoder] for a given format.

Callers 2

marshalWriterMethod · 0.65
TestDefaultCodecRegistryFunction · 0.65

Implementers 1

Calls

no outgoing calls

Tested by 1

TestDefaultCodecRegistryFunction · 0.52