type flag.FlagSet
45 uses
flag (current package)
flag.go#L389: type FlagSet struct {
flag.go#L431: func (f *FlagSet) Output() io.Writer {
flag.go#L439: func (f *FlagSet) Name() string {
flag.go#L444: func (f *FlagSet) ErrorHandling() ErrorHandling {
flag.go#L450: func (f *FlagSet) SetOutput(output io.Writer) {
flag.go#L456: func (f *FlagSet) VisitAll(fn func(*Flag)) {
flag.go#L470: func (f *FlagSet) Visit(fn func(*Flag)) {
flag.go#L483: func (f *FlagSet) Lookup(name string) *Flag {
flag.go#L494: func (f *FlagSet) Set(name, value string) error {
flag.go#L497: func (f *FlagSet) set(name, value string) error {
flag.go#L607: func (f *FlagSet) PrintDefaults() {
flag.go#L684: func (f *FlagSet) defaultUsage() {
flag.go#L712: func (f *FlagSet) NFlag() int { return len(f.actual) }
flag.go#L720: func (f *FlagSet) Arg(i int) string {
flag.go#L735: func (f *FlagSet) NArg() int { return len(f.args) }
flag.go#L741: func (f *FlagSet) Args() []string { return f.args }
flag.go#L748: func (f *FlagSet) BoolVar(p *bool, name string, value bool, usage string) {
flag.go#L760: func (f *FlagSet) Bool(name string, value bool, usage string) *bool {
flag.go#L774: func (f *FlagSet) IntVar(p *int, name string, value int, usage string) {
flag.go#L786: func (f *FlagSet) Int(name string, value int, usage string) *int {
flag.go#L800: func (f *FlagSet) Int64Var(p *int64, name string, value int64, usage string) {
flag.go#L812: func (f *FlagSet) Int64(name string, value int64, usage string) *int64 {
flag.go#L826: func (f *FlagSet) UintVar(p *uint, name string, value uint, usage string) {
flag.go#L838: func (f *FlagSet) Uint(name string, value uint, usage string) *uint {
flag.go#L852: func (f *FlagSet) Uint64Var(p *uint64, name string, value uint64, usage string) {
flag.go#L864: func (f *FlagSet) Uint64(name string, value uint64, usage string) *uint64 {
flag.go#L878: func (f *FlagSet) StringVar(p *string, name string, value string, usage string) {
flag.go#L890: func (f *FlagSet) String(name string, value string, usage string) *string {
flag.go#L904: func (f *FlagSet) Float64Var(p *float64, name string, value float64, usage string) {
flag.go#L916: func (f *FlagSet) Float64(name string, value float64, usage string) *float64 {
flag.go#L931: func (f *FlagSet) DurationVar(p *time.Duration, name string, value time.Duration, usage string) {
flag.go#L945: func (f *FlagSet) Duration(name string, value time.Duration, usage string) *time.Duration {
flag.go#L963: func (f *FlagSet) TextVar(p encoding.TextUnmarshaler, name string, value encoding.TextMarshaler, usage string) {
flag.go#L979: func (f *FlagSet) Func(name, usage string, fn func(string) error) {
flag.go#L993: func (f *FlagSet) BoolFunc(name, usage string, fn func(string) error) {
flag.go#L1010: func (f *FlagSet) Var(value Value, name string, usage string) {
flag.go#L1050: func (f *FlagSet) sprintf(format string, a ...any) string {
flag.go#L1058: func (f *FlagSet) failf(format string, a ...any) error {
flag.go#L1066: func (f *FlagSet) usage() {
flag.go#L1075: func (f *FlagSet) parseOne() (bool, error) {
flag.go#L1153: func (f *FlagSet) Parse(arguments []string) error {
flag.go#L1180: func (f *FlagSet) Parsed() bool {
flag.go#L1216: func NewFlagSet(name string, errorHandling ErrorHandling) *FlagSet {
flag.go#L1217: f := &FlagSet{
flag.go#L1228: func (f *FlagSet) Init(name string, errorHandling ErrorHandling) {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |