tags

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvironmentTag = "env"
)

Variables

This section is empty.

Functions

func PrintDefaults

func PrintDefaults(f *flag.FlagSet, o ...order.Stages)

PrintDefaults - printing help

Types

type Annotation

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

Annotation - store general values

type Tag

type Tag struct {
	ConfigFile func(map[string]any) Tag
	Valid      func() any
	DummyFlags func() Tag
	Env        func() Tag
	Flag       func() Tag
	FlagSet    *flag.FlagSet
	Flags      map[string]*flag.Flag
	Name       string
	Annotation
}

Tag of TagInfo store tags Config struct

func Fill

func Fill[T any](field string, order ...order.Stages) Tag

Fill - filling the 'tag'

type Tags

type Tags map[string]Tag

Tags consist information when reading/valid configs

Jump to

Keyboard shortcuts

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