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]) GoString() string
- func (id ID) IsEmpty() bool
- func (id *ID[T]) IsNil() bool
- func (d ID) MarshalText() ([]byte, error)
- func (id ID[T]) Ref() *ID[T]
- func (id ID) String() string
- func (id *ID[T]) StringRef() *string
- func (id ID) Timestamp() time.Time
- func (ID[T]) Type() string
- func (id *ID) 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]) Less(i, j int) bool
- 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]) Set() *Set[T]
- func (l List[T]) Sort() List[T]
- func (l List[T]) Strings() []string
- func (l List[T]) Swap(i, j int)
- 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) MarshalText ¶
MarshalText implements encoding.TextMarshaler interface
func (*ID) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler interface
type StringID ¶
func StringIDFromRef ¶
Click to show internal directories.
Click to hide internal directories.