Documentation
¶
Index ¶
- func Contains[T comparable](s []T, e T) bool
- func ContainsCaseInsensitive(s []string, e string) bool
- func Filter[T any](data []T, f func(T) bool) []T
- func FormatList(list []string) string
- func Map[T, U any](data []T, f func(T) U) []U
- func Min[T constraints.Ordered](a, b T) T
- func RealiseSliceOfPointers[T any](list []*T) []T
- func Reverse[T any](list []T)
- func SliceInsertAt[T any](s []T, val T, idx int) []T
- func SliceMove[T comparable](s []T, val T, idx int) []T
- func SliceMoveAt[T any](s []T, from, to int) []T
- func SliceOfPointers[T any](list []T) []*T
- func SliceRemoveAt[T any](s []T, idx int) []T
- func SliceRemoveVal[T comparable](s []T, val T) []T
- func Start(input string) error
- func Timer(name string) func()
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](s []T, e T) bool
func ContainsCaseInsensitive ¶
func FormatList ¶
func Min ¶
func Min[T constraints.Ordered](a, b T) T
func RealiseSliceOfPointers ¶
func RealiseSliceOfPointers[T any](list []*T) []T
func SliceInsertAt ¶
func SliceMove ¶
func SliceMove[T comparable](s []T, val T, idx int) []T
func SliceMoveAt ¶
func SliceOfPointers ¶
func SliceOfPointers[T any](list []T) []*T
func SliceRemoveAt ¶
func SliceRemoveVal ¶
func SliceRemoveVal[T comparable](s []T, val T) []T
Types ¶
Click to show internal directories.
Click to hide internal directories.