codec

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

type JSON struct {
	jsonpb.Marshaler
	jsonpb.Unmarshaler
}

JSON is impl of encoding.Codec

func (JSON) Marshal

func (j JSON) Marshal(v interface{}) (out []byte, err error)

Marshal is json marshal

func (JSON) Name

func (j JSON) Name() string

Name is name of JSON

func (JSON) Unmarshal

func (j JSON) Unmarshal(data []byte, v interface{}) (err error)

Unmarshal is json unmarshal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL