Documentation ¶
Index ¶
- type Map
- func (m *Map[K, V]) Assign(e *xml.Element) error
- func (m *Map[K, V]) Capacity() int
- func (m *Map[K, V]) CountValidatedField() int
- func (m *Map[K, V]) Get(key K) V
- func (m *Map[K, V]) GetAttributes() attributes.Attributes
- func (m *Map[K, V]) GetFromIndex(idx int) V
- func (m *Map[K, V]) GetKeyFromIndex(idx int) K
- func (m *Map[K, V]) GetPath() string
- func (m *Map[K, V]) GetXMLTag() []byte
- func (m *Map[K, V]) IsValidField(_ string) bool
- func (m *Map[K, V]) Iterator() *iterator.MapIterator[K, V]
- func (m *Map[K, V]) Set(key K, value V)
- func (m *Map[K, V]) SetAttributes(_ attributes.Attributes)
- func (m *Map[K, V]) TransformToXML(b *saver.Buffer) error
- func (m *Map[K, V]) ValidateField(_ string)
- type MapComparable
- type Pair
- type Slice
- func (s *Slice[T]) Add(value T, attr attributes.Attributes)
- func (s *Slice[T]) Assign(e *xml.Element) error
- func (s *Slice[T]) At(idx int) T
- func (s *Slice[T]) Capacity() int
- func (s *Slice[T]) CountValidatedField() int
- func (s *Slice[T]) GetAttributes() attributes.Attributes
- func (s *Slice[T]) GetPath() string
- func (s *Slice[T]) GetXMLTag() []byte
- func (s *Slice[T]) IsValidField(_ string) bool
- func (s *Slice[T]) Remove(idx int)
- func (s *Slice[T]) Reset()
- func (s *Slice[T]) Set(value T, attr attributes.Attributes, idx int)
- func (s *Slice[T]) SetAttributes(attributes attributes.Attributes)
- func (s *Slice[T]) String() string
- func (s *Slice[T]) TransformToXML(b *saver.Buffer) error
- func (s *Slice[T]) ValidateField(_ string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, V any] struct { MapComparable[Map[K, V]] _interface.Assigner iterator.MapIndexer[K, V] // contains filtered or unexported fields }
Map is a map of K to V. We don't restrict the type K to MapComparable[Map[K, V]] because K might be type of string, int or multiple primary type.
func (*Map[K, V]) CountValidatedField ¶
func (*Map[K, V]) GetAttributes ¶
func (m *Map[K, V]) GetAttributes() attributes.Attributes
func (*Map[K, V]) GetFromIndex ¶
func (*Map[K, V]) GetKeyFromIndex ¶
func (*Map[K, V]) IsValidField ¶
func (*Map[K, V]) Iterator ¶
func (m *Map[K, V]) Iterator() *iterator.MapIterator[K, V]
func (*Map[K, V]) SetAttributes ¶
func (m *Map[K, V]) SetAttributes(_ attributes.Attributes)
func (*Map[K, V]) ValidateField ¶
type MapComparable ¶
type Pair ¶
type Pair[K comparable, V any] struct { Key K Value V }
type Slice ¶
type Slice[T any] struct { // contains filtered or unexported fields }
Slice is a slice of data that is represented by sliceData. The main difference with a normal slice is that it can get and set attributes. Like a normal slice, the slice is a slice of T and you can iterate over it.
func (*Slice[T]) Add ¶
func (s *Slice[T]) Add(value T, attr attributes.Attributes)
func (*Slice[T]) CountValidatedField ¶
func (*Slice[T]) GetAttributes ¶
func (s *Slice[T]) GetAttributes() attributes.Attributes
func (*Slice[T]) IsValidField ¶
func (*Slice[T]) Set ¶
func (s *Slice[T]) Set(value T, attr attributes.Attributes, idx int)
func (*Slice[T]) SetAttributes ¶
func (s *Slice[T]) SetAttributes(attributes attributes.Attributes)
func (*Slice[T]) ValidateField ¶
Click to show internal directories.
Click to hide internal directories.