package
0.2.0
Repository: https://github.com/rock-rabbit/gf.git
Documentation: pkg.go.dev

# Functions

Decode decodes json format <data> to golang variable.
Decode decodes json format <data> to specified golang variable <v>.
DecodeToJson codes json format <data> to a Json object.
Encode encodes any golang variable <value> to JSON bytes.
IsValidDataType checks and returns whether given <dataType> a valid data type for loading.
Load loads content from specified file <path>, and creates a Json object from its content.
LoadContent creates a Json object from given content, it checks the data type of <content> automatically, supporting data content type as follows: JSON, XML, INI, YAML and TOML.
LoadContentType creates a Json object from given type and content, supporting data content type as follows: JSON, XML, INI, YAML and TOML.
LoadIni creates a Json object from given INI format content.
LoadJson creates a Json object from given JSON format content.
LoadToml creates a Json object from given TOML format content.
LoadXml creates a Json object from given XML format content.
LoadYaml creates a Json object from given YAML format content.
New creates a Json object with any variable type of <data>, but <data> should be a map or slice for data access reason, or it will make no sense.
NewWithOptions creates a Json object with any variable type of <data>, but <data> should be a map or slice for data access reason, or it will make no sense.
NewWithTag creates a Json object with any variable type of <data>, but <data> should be a map or slice for data access reason, or it will make no sense.
Valid checks whether <data> is a valid JSON data type.

# Structs

Json is the customized JSON struct.
Options for Json object creating.