config

package
v0.0.0-...-81aed03 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateResolverFunc

func GenerateResolverFunc(nameAry []string, emptyMeansZero bool) func(s string) (int, error)

func IdentityNameTransf

func IdentityNameTransf(name string) (newName string)

Types

type Configer

type Configer interface {
	ToCliFlags(nameTransf NameTransformFunc, envVarNameTransf NameTransformFunc) []cli.Flag
	FromContext(nameTransf NameTransformFunc, ctx *cli.Context) (nMessages int)
	Validate(force bool) (nMessages int)
}

type NameTransformFunc

type NameTransformFunc func(name string) (newName string)

Jump to

Keyboard shortcuts

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