Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolLabel

func BoolLabel(value *bool) string

func RequireSingleArg

func RequireSingleArg(cmd *cli.Command, label string) (string, error)

func SliceOrEmpty

func SliceOrEmpty[S ~[]E, E any](value *S) S

func StringOrDefault

func StringOrDefault(value *string, fallback string) string

func TimeOrDash

func TimeOrDash(appCtx *app.Context, value *time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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