Documentation
¶
Index ¶
- func Assert(ok bool, args ...any)
- func ForeachSlice[T any](slice []T, f func(T))
- func Keys[K comparable, V any](m map[K]V) []K
- func MapSlice[T1, T2 any](slice []T1, f func(T1) T2) []T2
- func TrimWhitespacesAndCount(text string) (string, int)
- func UpdateHelpFlag(cmd *cobra.Command)
- func WalkCmd(cmd *cobra.Command, f func(*cobra.Command))
- func Wrap(text string, limit int) string
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForeachSlice ¶
func ForeachSlice[T any](slice []T, f func(T))
func Keys ¶
func Keys[K comparable, V any](m map[K]V) []K
func TrimWhitespacesAndCount ¶
func UpdateHelpFlag ¶ added in v0.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.