Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection[T any] struct { // contains filtered or unexported fields }
func LoadCollectionCSV ¶
func LoadCollectionCSV[T any](name string) (*Collection[T], error)
func (*Collection[T]) GetAll ¶
func (s *Collection[T]) GetAll() []*T
func (*Collection[T]) Index ¶
func (s *Collection[T]) Index(i int) *T
func (*Collection[T]) Len ¶
func (s *Collection[T]) Len() int
type Dict ¶
type Dict[T any, K comparable] struct { Collection[T] // contains filtered or unexported fields }
func LoadDictCSV ¶
func LoadDictCSV[T any, K comparable, PT keyer[K, T]](name string) (*Dict[T, K], error)
Click to show internal directories.
Click to hide internal directories.