Documentation ¶
Index ¶
Constants ¶
View Source
const ( JSON = "json" YAML = "yaml" YamlExtension = ".yaml" YmlExtension = ".yml" JSONExtension = ".json" )
Variables ¶
View Source
var ErrMarshal = errors.New("error while marshalling data")
Functions ¶
func MarshalData ¶
func MarshalData(input interface{}, encoding string, options MarshalOptions) ([]byte, error)
func UnmarshalData ¶
Types ¶
type MarshalOptions ¶
type MarshalOptions struct {
Indent bool
}
type UnsupportedEncodingError ¶
type UnsupportedEncodingError struct {
Encoding string
}
func (UnsupportedEncodingError) Error ¶
func (e UnsupportedEncodingError) Error() string
Click to show internal directories.
Click to hide internal directories.