nano: github.com/lonnng/nano/serialize Index | Files | Directories

package serialize

import "github.com/lonnng/nano/serialize"

Index

Package Files

serializer.go

type Marshaler Uses

type Marshaler interface {
    Marshal(interface{}) ([]byte, error)
}

Marshaler represents a marshal interface

type Serializer Uses

type Serializer interface {
    Marshaler
    Unmarshaler
}

Serializer is the interface that groups the basic Marshal and Unmarshal methods.

type Unmarshaler Uses

type Unmarshaler interface {
    Unmarshal([]byte, interface{}) error
}

Unmarshaler represents a Unmarshal interface

Directories

PathSynopsis
json
protobuf

Updated 2019-07-25. Refresh now. Tools for package owners.