flagparse

package module
v0.0.0-...-db671ae Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindNone          Kind = 0
	KindMayParseFlag       = 1 << (iota - 1) // Package has one or more functions that parse flags
	KindMayCreateFlag                        // Package has one or more functions that create flags
	KindParsesFlag                           // Function or package parses flags
	KindCreatesFlag                          // Function or package creates flags
	KindRootFunc                             // Func is a root function that creates flags
)

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:       "flagparse",
	Doc:        "TODO: documentation",
	Run:        run,
	Requires:   []*analysis.Analyzer{inspect.Analyzer},
	ResultType: reflect.TypeOf((*Result)(nil)),
	FactTypes: []analysis.Fact{
		new(pkgHasFlag),
		new(funcHasFlag),
		new(isFlag),
	},
}

Functions

This section is empty.

Types

type Kind

type Kind int

func (Kind) Clear

func (k Kind) Clear(v Kind) Kind

func (Kind) Has

func (k Kind) Has(v Kind) bool

func (Kind) Set

func (k Kind) Set(v Kind) Kind

func (Kind) String

func (k Kind) String() string

type Result

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

func (*Result) Kind

func (r *Result) Kind(v any) (Kind, bool)

Directories

Path Synopsis
cmd
flagparse command

Jump to

Keyboard shortcuts

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