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 ¶ added in v0.48.0
type Id string
Id is a generic identifier for entities
func (Id) IsNotEmpty ¶ added in v0.48.0
func (Id) OrDefault ¶ added in v0.48.0
OrDefault returns the defaultId if id is empty, otherwise returns id
Click to show internal directories.
Click to hide internal directories.