Documentation ¶
Index ¶
- func FromJSON(data interface{}, target interface{}) error
- func FromYAML(data interface{}, target interface{}) error
- func NewConfig(data interface{}, target interface{}) error
- func ToJSON(c interface{}) (string, error)
- func ToYAML(c interface{}) (string, error)
- type DataParseError
- type Error
- type Exporter
- type Importer
- type InvalidArgumentError
- type JSONExporter
- type JSONImporter
- type Stringer
- type YAMLExporter
- type YAMLImporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataParseError ¶
type DataParseError struct {
Err error
}
func (*DataParseError) Error ¶
func (e *DataParseError) Error() string
func (*DataParseError) Unwrap ¶
func (e *DataParseError) Unwrap() error
type Exporter ¶
type Exporter interface { JSONExporter YAMLExporter Stringer }
type Importer ¶
type Importer interface { JSONImporter YAMLImporter }
type InvalidArgumentError ¶
type InvalidArgumentError struct {
Err error
}
func (*InvalidArgumentError) Error ¶
func (e *InvalidArgumentError) Error() string
func (*InvalidArgumentError) Unwrap ¶
func (e *InvalidArgumentError) Unwrap() error
type JSONExporter ¶
type JSONImporter ¶
type YAMLExporter ¶
type YAMLImporter ¶
Click to show internal directories.
Click to hide internal directories.