package
0.0.0-20241113112105-d5176070b8d9
Repository: https://github.com/ortizdavid/go-nopain.git
Documentation: pkg.go.dev
# README
serialization
Package for data serialization
Features
- JSON
- XML
- ASN1
- Serialization from file
- Data Transformation
# Functions
DecodeAsn1 decodes ASN.1 from the reader into the given data structure.
DecodeJson decodes JSON from the reader into the given data structure.
DecodeXml decodes JSON from the reader into the given data structure.
EncodeAsn1 encodes the given object as ASN.1 and writes it to the writer.
EncodeJson encodes the given object as JSON and writes it to the writer.
EncodeXml encodes the given object as JSON and writes it to the writer.
FromAsnFile deserializes ASN.1 encoded data from the specified file into the given object.
FromCsvFileToJson reads data from the specified CSV file and deserializes it into JSON format.
FromCsvFileToXml reads data from the specified CSV file and deserializes it into XML format.
FromJsonFile deserializes JSON data from the specified file into the given object.
FromXmlFile deserializes XML data from the specified file into the given object.
JsonToAsn1 converts JSON data to ASN.1 format.
JsonToXml converts JSON data to XML format.
Map MapToJson converts a map[string]interface{} to JSON format.
Struct MapToStruct converts a map[string]interface{} to a struct.
MapToXml converts a map[string]interface{} to XML format.
SerializeAsn1 serializes the given object to ASN.1 format.
SerializeJson serializes the given object to JSON.
SerializeXml serializes the given object to JSON.
StructToMap converts a struct to a map[string]interface{}.
UnserializeAsn1 deserializes ASN.1 data into the given data structure.
UnserializeJson deserializes JSON data into the given data structure.
UnserializeXml deserializes JSON data into the given data structure.
XmlToAsn1 converts XML data to ASN.1 format.
XmlToJson converts XML data to JSON format.