pbutil - ActiveState ActiveGo 1.8
...

Package pbutil

import "github.com/coreos/etcd/pkg/pbutil"
Overview
Index

Overview ▾

Package pbutil defines interfaces for handling Protocol Buffer objects.

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)

type Marshaler

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

type Unmarshaler

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