flags

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustGetBool

func MustGetBool(flagName string, flags *pflag.FlagSet) bool

MustGetBool attempts to get a boolean flag from the provided flag set or panic

func MustGetDefinedString

func MustGetDefinedString(flagName string, flags *pflag.FlagSet) string

MustGetDefinedString attempts to get a non-empty string flag from the provided flag set or panic

func MustGetInt

func MustGetInt(flagName string, flags *pflag.FlagSet) int

func MustGetString

func MustGetString(flagName string, flags *pflag.FlagSet) string

MustGetString attempts to get a string flag from the provided flag set or panic

Types

This section is empty.

Jump to

Keyboard shortcuts

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