Documentation ¶
Index ¶
- Constants
- func E[T any](_ T, err error) error
- func Filter[T any](old []T, f func(item T) bool) []T
- func Find[T any](s []T, t T, compare func(a, b T) bool) int
- func Has[T any](s []T, t T, compare func(a, b T) bool) bool
- func Include[T comparable](s []T, t T) bool
- func Index[T comparable](s []T, t T) int
- func Interfaces[T any](objs []T) []interface{}
- func JSONStringer(v any) fmt.Stringer
- func Limit[T any](s []T, limit int, hidePosition int, manySuffix ...T) []T
- func M[T any](v T, err error) T
- func Map[S any, T any](old []S, f func(item S) T) []T
- func NewStringer(stringer func() string) fmt.Stringer
- func P[T any](o T) *T
- type Stringer
Constants ¶
View Source
const ( PosRight = iota PosLeft PosCenter )
Variables ¶
This section is empty.
Functions ¶
func Include ¶
func Include[T comparable](s []T, t T) bool
func Index ¶
func Index[T comparable](s []T, t T) int
func Interfaces ¶
func Interfaces[T any](objs []T) []interface{}
func JSONStringer ¶
func NewStringer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.