codec

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonCodec

type JsonCodec struct {
	protojson.MarshalOptions
	protojson.UnmarshalOptions
	// contains filtered or unexported fields
}

func NewJsonCodec

func NewJsonCodec() *JsonCodec

func (JsonCodec) Marshal

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

func (JsonCodec) Name

func (j 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