Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyUUID = &UUID{make([]byte, 16)}
EmptyUUID is the zero-UUID.
Functions ¶
This section is empty.
Types ¶
type UUID ¶
type UUID struct { // TODO(tamird): should be an embedded uuid.UUID when // https://github.com/gogo/protobuf/pull/146 is fixed. // Revert this comment when that happens. U []byte }
UUID is a thin wrapper around "github.com/satori/go.uuid".UUID that can be used as a gogo/protobuf customtype.
func FromBytes ¶
FromBytes delegates to "github.com/satori/go.uuid".FromBytes and wraps the result in a UUID.
func FromString ¶
FromString delegates to "github.com/satori/go.uuid".FromString and wraps the result in a UUID.
func MakeV4 ¶
func MakeV4() UUID
MakeV4 delegates to "github.com/satori/go.uuid".NewV4 and wraps the result in a UUID.
func NewV4 ¶
func NewV4() *UUID
NewV4 delegates to "github.com/satori/go.uuid".NewV4 and wraps the result in a UUID.
Click to show internal directories.
Click to hide internal directories.