Documentation
¶
Index ¶
- func CsvPretty(header []string, rows [][]string, sortRows bool) string
- func CsvPrettyMap(keyName string, valueName string, m map[string]string) string
- func CsvPrettyOmitEmptyCols(header []string, rows [][]string, sortRows bool) string
- func Filter[T any](slice []T, predicate func(x T) bool) []T
- func MapGetOrPutDefault[T any](m map[string]T, key string, getDefault func() T) T
- func MaxBigInt(a *big.Int, b *big.Int) *big.Int
- func MinBigInt(a *big.Int, b *big.Int) *big.Int
- func NestedMapGetOrPutDefault[T any](m map[string]map[string]T, key1 string, key2 string, getDefault func() T) T
- func NonExhaustiveMatchPanic[T any](value any) T
- func NonNeg(a *big.Int) *big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CsvPrettyOmitEmptyCols ¶ added in v0.0.25
CsvPrettyOmitEmptyCols renders the table like CsvPretty, but omits any column whose data cells are all empty (its header is dropped along with it). This lets callers always pass the full set of columns and have the optional ones (e.g. a color or scope dimension that no row populates) disappear automatically.
Fails if the header is shorter than any of the rows.
func MapGetOrPutDefault ¶
func NonExhaustiveMatchPanic ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.