pbutil

package
v3.3.0-rc.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package pbutil defines interfaces for handling Protocol Buffer objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boolp

func Boolp(b bool) *bool

func GetBool

func GetBool(v *bool) (vv bool, set bool)

func MaybeUnmarshal

func MaybeUnmarshal(um Unmarshaler, data []byte) bool

func MustMarshal

func MustMarshal(m Marshaler) []byte

func MustUnmarshal

func MustUnmarshal(um Unmarshaler, data []byte)

Types

type Marshaler

type Marshaler interface {
	Marshal() (data []byte, err error)
}

type Unmarshaler

type Unmarshaler interface {
	Unmarshal(data []byte) error
}

Jump to

Keyboard shortcuts

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