Versions in this module Expand all Collapse all v1 v1.0.1 Sep 17, 2024 Changes in this version + func CastSlice[T any](vals []interface{}) []T + func CdBack(backDir string) + func CdToThis() + func Contains(items []string, item string) bool + func ConvertSlice[M, N Convertable](vals []M) []N + func DeepCopy(src, dist interface{}) (err error) + func ErrorContains(out error, want string) bool + func FileSize(filepath string) (int64, error) + func GetType(myvar interface{}) string + func IsNil(i interface{}) bool + func LogError(err error) + func MakeRange(start, end int) []int + func Merge[T any](a, b []T) []T + func MinMax(array []int) (int, int) + func MinMaxFloat64(array []float64) (float64, float64) + func ReadAllLn(filepath string, keepBreakLine bool) ([]string, error) + func Repeat[T RepeatType](item T, length int) []T + func StringInSlice(a string, list []string) bool + func StringIndex(s, sub string) (index int, err error) + func ToASCII(s string) string + func ToGrapheme(s string) string + func TraceError(err error) error + func Zip(a, b, c interface{}) error + type Convertable interface + type Iter struct + func NewIter(data interface{}) *Iter + func (it *Iter) Next() (retVal interface{}, ok bool) + type ParamOption func(*Params) + func WithParam(key string, value interface{}) ParamOption + func WithParams(p *Params) []ParamOption + type Params struct + func DefaultParams() *Params + func NewParams(values map[string]interface{}) *Params + func (p *Params) Clone() *Params + func (p *Params) Copy(params *Params, key string, newKeyOpt ...string) + func (p *Params) DeepCopy(params *Params, key string, newKeyOpt ...string) + func (p *Params) Delete(key string) + func (p *Params) DeleteAll() + func (p *Params) Get(key string, defaultValueOpt ...interface{}) (val interface{}) + func (p *Params) Has(key string) bool + func (p *Params) Keys() []string + func (p *Params) Len() int + func (p *Params) Param(key string) (value interface{}) + func (p *Params) Pop(key string) (value interface{}) + func (p *Params) Select(keys []string) *Params + func (p *Params) Set(key string, value interface{}) + func (p *Params) Values() map[string]interface{} + type RepeatType interface + type RuneGen func() rune + func MapRune(g RuneGen, f func(rune) rune) RuneGen + type RuneIter struct + func NewRuneIter(data []rune) *RuneIter + func (it *RuneIter) CurrentIndex() int + func (it *RuneIter) Len() int + func (it *RuneIter) Next() (retVal rune, ok bool) + func (it *RuneIter) Reset() + type RuneReader struct + func NewRuneReader(r []rune) RuneReader + func (r *RuneReader) ReadRune() (rune, int, error)