flag

package
v0.0.0-...-520f1c6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 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