protojson

package
v2.0.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "jsonpb"

Variables

View Source
var Default = &Codec{}

Functions

func UseNumber

func UseNumber()

UseNumber fix unmarshal Number(8234567890123456789) to interface(8.234567890123457e+18)

Types

type Codec

type Codec struct{}

func (*Codec) Decode

func (j *Codec) Decode(data []byte, v any) error

func (*Codec) Encode

func (j *Codec) Encode(v any) ([]byte, error)

func (*Codec) Marshal

func (j *Codec) Marshal(v any) ([]byte, error)

func (*Codec) Name

func (j *Codec) Name() string

func (*Codec) Unmarshal

func (j *Codec) Unmarshal(data []byte, v any) error

Jump to

Keyboard shortcuts

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