Documentation ¶
Index ¶
- Variables
- type ID
- func (id ID[T]) Clone() ID[T]
- func (id *ID[T]) CloneRef() *ID[T]
- func (id ID[T]) Compare(id2 ID[T]) int
- func (id *ID[T]) CopyRef() *ID[T]
- func (i ID[T]) Equal(i2 ID[T]) bool
- func (id ID[T]) GoString() string
- func (id ID[T]) IsEmpty() bool
- func (id *ID[T]) IsNil() bool
- func (d *ID[T]) MarshalText() ([]byte, error)
- func (id ID[T]) Ref() *ID[T]
- func (id ID[T]) String() string
- func (id *ID[T]) StringRef() *string
- func (id ID[T]) Timestamp() time.Time
- func (ID[T]) Type() string
- func (id *ID[T]) UnmarshalText(b []byte) (err error)
- type List
- func (l List[T]) Add(ids ...ID[T]) List[T]
- func (l List[T]) AddUniq(ids ...ID[T]) List[T]
- func (l List[T]) At(i int) *ID[T]
- func (l List[T]) Clone() List[T]
- func (l List[T]) Concat(m List[T]) List[T]
- func (l List[T]) Delete(ids ...ID[T]) List[T]
- func (l List[T]) DeleteAt(i int) List[T]
- func (l List[T]) Has(ids ...ID[T]) bool
- func (l List[T]) Index(id ID[T]) int
- func (l List[T]) Insert(i int, ids ...ID[T]) List[T]
- func (l List[T]) Intersect(m List[T]) List[T]
- func (l List[T]) Len() int
- func (l List[T]) Move(e ID[T], to int) List[T]
- func (l List[T]) MoveAt(from, to int) List[T]
- func (l List[T]) Ref() *List[T]
- func (l List[T]) Refs() RefList[T]
- func (l List[T]) Reverse() List[T]
- func (l List[T]) Sort() List[T]
- func (l List[T]) Strings() []string
- type RefList
- type Set
- type StringID
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidID = errors.New("invalid ID")
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID[T Type] struct { // contains filtered or unexported fields }
func (*ID[T]) MarshalText ¶
MarshalText implements encoding.TextMarshaler interface
func (*ID[T]) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler interface
type StringID ¶
func StringIDFromRef ¶
Click to show internal directories.
Click to hide internal directories.