Documentation ¶
Index ¶
- Variables
- func In[T comparable](value T, entries ...T) bool
- func Join(delim string, entries ...any) string
- func JoinFunc(delim string, entries []any, callbacks ...JoinEntryFunc) string
- func New[T any]() (value T)
- func Ptr(v any) any
- func PtrOf[T any](v T) *T
- func Split[T SetConstraint](data string, delim string) (value []T, err error)
- func Write(input any, output any) (err error)
- func Zero[T any]() (value T)
- type Array
- func (x *Array[T]) Append(entries ...T)
- func (x *Array[T]) Clear()
- func (x *Array[T]) Contains(v T) bool
- func (x *Array[T]) Filter(callback ArrayPredicate[T]) (value *Array[T])
- func (x *Array[T]) ForEach(callback ArrayCallback[T])
- func (x *Array[T]) IndexOf(v T) int
- func (x *Array[T]) LastIndexOf(v T) int
- func (x *Array[T]) Len() int
- func (x *Array[T]) Prepend(entries ...T)
- func (x *Array[T]) TakeAt(i int) T
- func (x *Array[T]) TakeFirst() T
- func (x *Array[T]) TakeLast() T
- type ArrayCallback
- type ArrayPredicate
- type CYBReaderLike
- type IOData
- type JoinEntryFunc
- type Mutex
- type PathFn
- type SetConstraint
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var IO xIO
View Source
var Net xNet
View Source
var Path xPath
Functions ¶
func In ¶ added in v1.5.3
func In[T comparable](value T, entries ...T) bool
Types ¶
type Array ¶
type Array[T comparable] struct { // contains filtered or unexported fields }
func (*Array[T]) Filter ¶
func (x *Array[T]) Filter(callback ArrayPredicate[T]) (value *Array[T])
func (*Array[T]) ForEach ¶
func (x *Array[T]) ForEach(callback ArrayCallback[T])
func (*Array[T]) LastIndexOf ¶
type ArrayCallback ¶
type ArrayCallback[T comparable] func(entry T, i int)
type ArrayPredicate ¶
type ArrayPredicate[T comparable] func(entry T, i int) bool
type CYBReaderLike ¶
type JoinEntryFunc ¶ added in v1.5.2
type Mutex ¶
type Mutex[T comparable] struct { // contains filtered or unexported fields }
type SetConstraint ¶
type SetConstraint interface { constraints.Integer | constraints.Float | ~string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.