Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncodingTOML ¶
type EncodingTOML struct { }
EncodingTOML is the toml encoding type
func NewEncodingTOML ¶
func NewEncodingTOML() *EncodingTOML
NewEncodingTOML creates a new EncodingTOML instance
func (*EncodingTOML) Marshal ¶
func (e *EncodingTOML) Marshal(v interface{}) ([]byte, error)
Marshal converts the given value to a toml byte slice
func (*EncodingTOML) Unmarshal ¶
func (e *EncodingTOML) Unmarshal(b []byte, v interface{}) error
Unmarshal converts the given toml byte slice to the given value
func (*EncodingTOML) UnmarshalToMap ¶
func (e *EncodingTOML) 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.