env

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultReplace = map[string]string{
	"-": "_",
}
View Source
var DefaultSetSeparator = "__"

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Prefix        string
	SetSeparator  string
	ListSeparator string
	Replace       map[string]string

	LookupEnvFunc func(string) (string, bool)
	// contains filtered or unexported fields
}

func (*Parser) Name added in v0.3.0

func (p *Parser) Name(_ context.Context, fs parse.FlagSet) (func(*flag.Flag, func(string)), error)

func (*Parser) Parse

func (p *Parser) Parse(_ context.Context, fs parse.FlagSet) (err error)

Jump to

Keyboard shortcuts

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