Documentation ¶
Index ¶
- func AllToString(ids []ID) []string
- type ID
- func (id ID) AsUUID() uuid.UUID
- func (id ID) Compare(other ID) int
- func (id ID) IsEmpty() bool
- func (id ID) IsNotEmpty() bool
- func (id ID) OrDefault(defaultId ID) ID
- func (id ID) OrNew() ID
- func (id ID) SelfOrNew() ID
- func (id ID) String() string
- func (id ID) ToBytes() []byte
- func (id ID) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllToString ¶
Types ¶
type ID ¶
type ID string
ID is a generic identifier for entities
func (ID) IsNotEmpty ¶
func (ID) OrDefault ¶ added in v0.47.0
OrDefault returns the defaultId if id is empty, otherwise returns id
Click to show internal directories.
Click to hide internal directories.