Categorygithub.com/vrischmann/flagutil
modulepackage
1.0.0
Repository: https://github.com/vrischmann/flagutil.git
Documentation: pkg.go.dev

# README

flagutil

Collection of common custom types used with Golang's flag package.

See the documentation for details.

License

flagutil is licensed under the MIT license, see the LICENSE file.

# Functions

EnvOrDefault returns the environment variable value at `envName` if not empty, otherwise it returns `defaultVal`.

# Structs

No description provided by the author
URL is a wrapper around a url.URL type.

# Type aliases

NetworkAddress is a flag.Value that represents a network address.
NetworkAddresses is a slice of string that have been validated as valid network addresses.
Strings is a slice of string.
URLs is a slice of url.URL.