package pbutil

import "go.etcd.io/etcd/pkg/v3/pbutil"

Package pbutil defines interfaces for handling Protocol Buffer objects.

Index

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
}

Source Files

pbutil.go

Version
v3.5.18 (latest)
Published
Jan 24, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
6 days ago

Tools for package owners.