package
Version:
v0.0.16
Opens a new window with list of versions in this module.
Published: Jul 22, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Package util adds some utility functions.
Get environment variable with default value.
Get integer environment variable with default value.
func Map[J any, K any](in []J, f func(J) *K) []K
Map the items in an input slice to something else, omitting null values
func NullMap[J any, K any](in []J, f func(J) K) []K
Map the items in an input slice to something else, leaving null values
Source Files
¶
Click to show internal directories.
Click to hide internal directories.