Categorygithub.com/neatio-project/data-go
modulepackage
1.1.0
Repository: https://github.com/neatio-project/data-go.git
Documentation: pkg.go.dev

# README

Data Go Library

# Packages

Package base58 provides base58-check encoding.

# Functions

FromJSON is a convenience method to deserialize with encoding/json.
FromWire is a convenience method to deserialize with go-wire.
NewMapper creates a Mapper.
ToJSON is a convenience method to serialize with encoding/json.
ToText is a rather special-case serialization for cli, especially for []byte interfaces It tries to serialize as json, and the result looks like: { "type": "string", "data": "string" } Then it will return "<type>:<data>" Main usecase is serializing eg.
ToWire is a convenience method to serialize with go-wire error is there to keep the same interface as json, but always nil.

# Variables

Encoder is a global setting for all byte encoding This is the default.
Encoder is a global setting for all byte encoding This is the default.
Encoder is a global setting for all byte encoding This is the default.
Encoder is a global setting for all byte encoding This is the default.

# Structs

Mapper is the main entry point in the package.

# Interfaces

ByteEncoder handles both the marshalling and unmarshalling of an arbitrary byte slice.

# Type aliases

Bytes is a special byte slice that allows us to control the serialization format per app.