json

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Reference https://jbrandhorst.com/post/grpc-json/

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