json

package
Version: v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL