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

flag

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllEmpty

func AllEmpty(arr ...[]string) bool

AllEmpty checks if all the passed arrays are empty

func InList

func InList(option, val string, list []string) error

InList validates if a value of a flag is in the array passed to it.

func TrimArray

func TrimArray(arr []string) []string

TrimArray Splits the array by `,` & ' '(space) and returns an array eg. [abc,def mno xyz] -> [abc def mno xyz]

func ValidateVersion

func ValidateVersion(version string) error

ValidateVersion validates version format

Types

This section is empty.

Jump to

Keyboard shortcuts

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