Back to godoc.org

Package codec

v0.3.3
Latest Go to latest

The latest major version is .

Published: Jan 20, 2020 | License: MIT | Module: github.com/bilibili/kratos

Index

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier