jsonx

package
v0.32.26 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMarshalOpts

func DefaultMarshalOpts() protojson.MarshalOptions

func EncodeJSONPB

func EncodeJSONPB(w io.Writer, msg proto.Message, opts ...protojson.MarshalOptions) error

func MarshalOpts added in v0.32.6

func MarshalOpts(multiline bool) protojson.MarshalOptions

func MaskedMarshalOpts

func MaskedMarshalOpts() protojson.MarshalOptions

func OutputJSON

func OutputJSON(w io.Writer, v interface{}) error

func OutputJSONPB

func OutputJSONPB(w io.Writer, msg proto.Message, opts ...protojson.MarshalOptions) error

func OutputJSONPBArray

func OutputJSONPBArray(w io.Writer, a []proto.Message) error

func OutputJSONPBMap

func OutputJSONPBMap(w io.Writer, m map[string]proto.Message) error

func OutputJSONStrings

func OutputJSONStrings(results []string, writer io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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