Documentation
¶
Index ¶
- type Array
- func (arr *Array[T]) Clear()
- func (arr *Array[T]) Copy() *Array[T]
- func (arr *Array[T]) Delete(index int)
- func (arr *Array[T]) Length() int
- func (arr *Array[T]) Lookup(index int) T
- func (arr *Array[T]) MarshalJSON() ([]byte, error)
- func (arr *Array[T]) Merge(items *Array[T]) *Array[T]
- func (arr *Array[T]) Pop() T
- func (arr *Array[T]) Push(value T) int
- func (arr *Array[T]) Reverse()
- func (arr *Array[T]) Set(index int, value T)
- func (arr *Array[T]) UnmarshalJSON(b []byte) error
- func (arr *Array[T]) Values() []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array[T any] struct { // contains filtered or unexported fields }
func (*Array[T]) MarshalJSON ¶
func (*Array[T]) Pop ¶
func (arr *Array[T]) Pop() T
Pop removes the last value in the array and returns the item.
func (*Array[T]) Push ¶
Push adds an item to the end of the array and returns the length of the array.
func (*Array[T]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.