utilfuncs

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2025 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(items []int, checkItem int) bool

func Fif added in v0.10.0

func Fif[T any](b bool, ifTrue, ifFalse T) T

func MaxFloat64

func MaxFloat64(a, b float64) float64

func MinFloat64

func MinFloat64(a, b float64) float64

func Normalize

func Normalize(str string) string

func ParseCsvToInts

func ParseCsvToInts(csv string) ([]int, error)

func RemoveItem

func RemoveItem(items []int, item int) []int

func Strvals

func Strvals[T any](items []T) []string

func Truncate

func Truncate(str string, nChars int) string

func UniqueInts added in v0.8.2

func UniqueInts(items []int) []int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL