Categorygithub.com/origadmin/toolkits/codec
modulepackage
0.0.54
Repository: https://github.com/origadmin/toolkits.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package json provides the json functions based on standard library.
Package toml provides the toml functions.
No description provided by the author
Package yaml provides the yaml functions.

# Functions

Decode Decodes the given reader with ext name into obj.
DecodeFromFile Decodes the given file.
DecodeINIFile Decodes the given INI file.
DecodeJSONFile Decodes the given JSON file.
DecodeTOMLFile Decodes the given TOML file.
DecodeXMLFile Decodes the given XML file.
DecodeYAMLFile Decodes the given YAML file.
Encode Encodes the given object with ext name.
EncodeINIFile Encodes the given INI file.
EncodeJSONFile Encodes the given JSON file.
EncodeToFile Encodes the given file.
EncodeTOMLFile Encodes the given TOML file.
EncodeXMLFile Encodes the given XML file.
EncodeYAMLFile Encodes the given YAML file.
TypeFromExt returns the codec type from the file extension.
TypeFromPath returns the codec type from the file path.
TypeFromString returns the codec type from the string.

# Constants

No description provided by the author
json.
toml.
No description provided by the author
unknown.
No description provided by the author
yaml.

# Variables

No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
Decoder interface.
Encoder interface.

# Type aliases

go:generate go run -mod=mod golang.org/x/tools/cmd/stringer@latest -type=Type.