Documentation ¶
Index ¶
- func Anyify[T any](items []T) []any
- func ArrayIntToArryString(strings []int) []string
- func ArrayWithValue(size int, s string) []string
- func DaySeconds(t *time.Time) uint
- func DayUTCOffsetSecs(t *time.Time) int
- func DayYYYYMMDD(t *time.Time) uint
- func DistHaversine(a, b Coord) float64
- func DurationFormatSecs(seconds uint) string
- func FilterMapByKeys[TK comparable, TV any](m map[TK]TV, validKeys []TK) map[TK]TV
- func Flatten[T any](arrArrs [][]T) []T
- func IntArrayToStringArray(arrInt []int) []string
- func IntArraysSortedFilter(intArrays [][]int) [][]int
- func ItemInArray[T comparable](item T, items []T) bool
- func MapKeys[TK comparable, TV any](m map[TK]TV) []TK
- func MapValueAdd(m map[string]uint, value int) map[string]int
- func MaxInt(a, b uint) uint
- func Pairs[T any](items []T) [][]T
- func StringInArray(items []string, findItem string) bool
- func TemplateExecute(templateStr string, context map[string]any) (string, error)
- func TimeHMSFormatSecs(seconds uint) string
- func TimezoneToUTCDeltaSecs(yyyymmdd uint, timezone string) (int, error)
- type Coord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayIntToArryString ¶
func ArrayWithValue ¶
func DaySeconds ¶
func DayUTCOffsetSecs ¶ added in v0.5.0
func DayYYYYMMDD ¶
func DistHaversine ¶
func DurationFormatSecs ¶
func FilterMapByKeys ¶
func FilterMapByKeys[TK comparable, TV any](m map[TK]TV, validKeys []TK) map[TK]TV
func IntArrayToStringArray ¶
func IntArraysSortedFilter ¶
func ItemInArray ¶
func ItemInArray[T comparable](item T, items []T) bool
func MapKeys ¶
func MapKeys[TK comparable, TV any](m map[TK]TV) []TK
func StringInArray ¶
func TemplateExecute ¶ added in v0.5.0
func TimeHMSFormatSecs ¶
TODO: is this better to do via time package (AM/PM formatting free then?)
Types ¶
Click to show internal directories.
Click to hide internal directories.