Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncodingYAML ¶
type EncodingYAML struct { }
EncodingYAML implements the Encoding interface for the YAML encoding
func NewEncodingYAML ¶
func NewEncodingYAML() *EncodingYAML
NewEncodingYAML creates a new EncodingYAML instance.
func (*EncodingYAML) Marshal ¶
func (e *EncodingYAML) Marshal(v interface{}) ([]byte, error)
Marshal converts the given value to YAML byte
func (*EncodingYAML) Unmarshal ¶
func (e *EncodingYAML) Unmarshal(b []byte, v interface{}) error
Unmarshal converts the given YAML byte to value
func (*EncodingYAML) UnmarshalToMap ¶
func (e *EncodingYAML) UnmarshalToMap(b []byte) (map[string]interface{}, error)
UnmarshalToMap converts the json string to a map
Click to show internal directories.
Click to hide internal directories.