parse

package
v0.0.0-...-a1c8074 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(m map[string]any, set SetFunc) error

Types

type FlagSet

type FlagSet struct {
	// contains filtered or unexported fields
}

func NewFlagSet

func NewFlagSet(origin *flag.FlagSet) *FlagSet

func (*FlagSet) ParseEnv

func (fs *FlagSet) ParseEnv(lookup LookupFunc) (err error)

func (*FlagSet) ParseFile

func (fs *FlagSet) ParseFile(name string) error

func (*FlagSet) Set

func (fs *FlagSet) Set(name, value string) error

func (*FlagSet) SetUnspecified

func (fs *FlagSet) SetUnspecified(name, value string) error

func (*FlagSet) VisitUnspecified

func (fs *FlagSet) VisitUnspecified(fn func(*flag.Flag))

type LookupFunc

type LookupFunc func(string) (string, bool)

type SetFunc

type SetFunc func(string, string) error

Jump to

Keyboard shortcuts

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