codecx

package
v0.0.0-...-bf2a522 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Json = "json"

Variables

This section is empty.

Functions

func RegisterCodecJson

func RegisterCodecJson()

Types

type JSONCodec

type JSONCodec struct {
	jsonpb.Marshaler
	jsonpb.Unmarshaler
}

func (JSONCodec) Marshal

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

func (JSONCodec) Name

func (_ JSONCodec) Name() string

func (JSONCodec) Unmarshal

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

Jump to

Keyboard shortcuts

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