flag

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagName = "arg"
)

Variables

This section is empty.

Functions

func Process

func Process(target interface{}) error

Types

type FlagBinder

type FlagBinder struct{}

func (*FlagBinder) Bind

func (p *FlagBinder) Bind(field structproto.FieldInfo, rv reflect.Value) error

func (*FlagBinder) Deinit

func (p *FlagBinder) Deinit(context *structproto.StructProtoContext) error

func (*FlagBinder) Init

func (p *FlagBinder) Init(context *structproto.StructProtoContext) error

type FlagValue

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

func (*FlagValue) Set

func (fv *FlagValue) Set(v string) error

func (*FlagValue) String

func (fv *FlagValue) String() string

Jump to

Keyboard shortcuts

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