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

package serialize

import "github.com/lonng/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

Package serialize is imported by 5 packages. Updated 2019-07-19. Refresh now. Tools for package owners.