Documentation ¶
Index ¶
- func IsNil(val *UUID) bool
- type UUID
- func (self *UUID) ByteArray() [16]byte
- func (self *UUID) ByteSlice() []byte
- func (self *UUID) Equal(val *UUID) bool
- func (self *UUID) EqualByteArray(val [16]byte) bool
- func (self *UUID) EqualByteSlice(val []byte) bool
- func (self *UUID) Format() string
- func (self *UUID) FormatNoMinuses() string
- func (self *UUID) GetVersion() byte
- func (self *UUID) IsNil() bool
- func (self *UUID) SetVersion(val byte) error
- type UUIDRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UUID ¶
type UUID struct {
// contains filtered or unexported fields
}
func NewUUIDFromByteArray ¶
func NewUUIDFromByteSlice ¶
func NewUUIDFromRandom ¶
func NewUUIDFromString ¶
returns errors only if parse failed.
func NewUUIDNil ¶
func NewUUIDNil() *UUID
func (*UUID) EqualByteArray ¶
func (*UUID) EqualByteSlice ¶
func (*UUID) FormatNoMinuses ¶
func (*UUID) GetVersion ¶
func (*UUID) SetVersion ¶
type UUIDRegistry ¶
type UUIDRegistry struct {
// contains filtered or unexported fields
}
func NewUUIDRegistry ¶
func NewUUIDRegistry() (*UUIDRegistry, error)
func (*UUIDRegistry) GenUUID ¶
func (self *UUIDRegistry) GenUUID() (*UUID, error)
func (*UUIDRegistry) Register ¶
func (self *UUIDRegistry) Register(val *UUID)
func (*UUIDRegistry) Registered ¶
func (self *UUIDRegistry) Registered(val *UUID) bool
func (*UUIDRegistry) Unregister ¶
func (self *UUIDRegistry) Unregister(val *UUID)
Click to show internal directories.
Click to hide internal directories.