envflag

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse()

Parse parses environment vars and command-line flags.

Flags set via command-line override flags set via environment vars.

This function must be called instead of flag.Parse() before using any flags in the program.

func ParseFlagSet

func ParseFlagSet(fs *flag.FlagSet, args []string)

ParseFlagSet parses the given args into the given fs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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