protofmt

package
v8.42.1698085480-SHA-e... Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format int
const (
	JSON Format = iota
	Wire
	Text
)

func FromString

func FromString(s string) (Format, error)

func (Format) Marshal

func (pf Format) Marshal(m proto.Message) ([]byte, error)

func (Format) String

func (pf Format) String() string

func (Format) Unmarshal

func (pf Format) Unmarshal(data []byte, m proto.Message) error

Jump to

Keyboard shortcuts

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