custom - ActiveState ActiveGo 1.8

Package custom

import ""

Overview ▾

Package custom contains custom types for test and example purposes. These types are used by the test structures generated by gogoprotobuf.

type Bytes

type Bytes []byte

func NewPopulatedBytes

func NewPopulatedBytes(r randy) *Bytes

func (Bytes) Compare

func (this Bytes) Compare(that Bytes) int

func (Bytes) Equal

func (this Bytes) Equal(that Bytes) bool

func (Bytes) Marshal

func (b Bytes) Marshal() ([]byte, error)

func (Bytes) MarshalJSON

func (b Bytes) MarshalJSON() ([]byte, error)

func (Bytes) MarshalTo

func (b Bytes) MarshalTo(data []byte) (n int, err error)

func (*Bytes) Size

func (b *Bytes) Size() int

func (*Bytes) Unmarshal

func (b *Bytes) Unmarshal(data []byte) error

func (*Bytes) UnmarshalJSON

func (b *Bytes) UnmarshalJSON(data []byte) error