envflag

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 6 Imported by: 3

Documentation

Overview

envflag wraps flag.FlagSet, allowing values to be set from the environment, translating keys from `screaming.snake-case` to `SCREAMING_SNAKE_CASE`

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*flag.FlagSet
}

func New

func New(name string, out io.Writer) *Config

func (*Config) Parse

func (c *Config) Parse(args, env []string) error

Jump to

Keyboard shortcuts

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