Documentation ¶
Index ¶
- func Marshal(v interface{}) ([]byte, error)
- func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func Register(value interface{})
- func RegisterName(name string, value interface{})
- type Composer
- type DecodeFunc
- type Decoder
- type EncodeFunc
- type Encoder
- type Encoding
- type Marshaler
- type MatchFunc
- type Parser
- type SyntaxComposer
- type Unmarshaler
- type ValueDecodeFunc
- type ValueEncodeFunc
- type ValueEncoding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalIndent ¶
MarshalIndent is like Marshal but applies Indent to format the output.
func RegisterName ¶
func RegisterName(name string, value interface{})
Types ¶
type DecodeFunc ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func (Decoder) GoToOnlyChild ¶
func (t Decoder) GoToOnlyChild() error
type EncodeFunc ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) ComposeAny ¶
encode never returns an error, it may panics with bytes.ErrTooLarge.
func (*Encoder) ComposeList ¶
type Encoding ¶
type Encoding struct { Encode EncodeFunc Decode DecodeFunc }
type SyntaxComposer ¶
type Unmarshaler ¶
type ValueEncoding ¶
type ValueEncoding struct { Encode ValueEncodeFunc Decode ValueDecodeFunc }
func (ValueEncoding) ToDecode ¶
func (e ValueEncoding) ToDecode(v reflect.Value) DecodeFunc
func (ValueEncoding) ToEncode ¶
func (e ValueEncoding) ToEncode(v reflect.Value) EncodeFunc
func (ValueEncoding) ToEncoding ¶
func (e ValueEncoding) ToEncoding(v reflect.Value) *Encoding
Source Files ¶
Click to show internal directories.
Click to hide internal directories.