package flags
import "gvisor.dev/gvisor/tools/nogo/flags"
Package flags contains globally-visible flags.
Index ¶
- Variables
- func Env(value string) (string, error)
- type StringList
- func (s *StringList) Get() any
- func (s *StringList) Set(value string) error
- func (s *StringList) String() string
- type StringMap
Variables ¶
var ( // Go location. Go string // GOOS defines the GOOS for analysis. GOOS string // GOARCH defines the GOARCH for analysis. GOARCH string // BuildTags defines the set of build tags for analysis. Note that // while this may also be a StringList, it is kept as an explicit // comma-separated list in order to build the standard flag. BuildTags string // ImportMap defines all binary input files. ImportMap = StringMap{} // ArchiveMap defines all binary archive files. ArchiveMap = StringMap{} // FactMap defines all fact input files. FactMap = StringMap{} // Bundles define fact bundles. This is typically used to contain the // inputs for the standard library. Bundles StringList )
Functions ¶
func Env ¶
Env gets a Go environment value.
Types ¶
type StringList ¶
type StringList []string
StringList is a list of strings.
func (*StringList) Get ¶
func (s *StringList) Get() any
Get implements flag.Value.Get.
func (*StringList) Set ¶
func (s *StringList) Set(value string) error
Set implements flag.Value.Set.
func (*StringList) String ¶
func (s *StringList) String() string
String implements fmt.Stringer.String.
type StringMap ¶
StringMap is a string to string map.
func (*StringMap) Get ¶
Get implements flag.Value.Get.
func (*StringMap) Set ¶
Set implements flag.Value.Set.
func (*StringMap) String ¶
String implements fmt.Stringer.String.
Source Files ¶
flags.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 5 hours ago –
Tools for package owners.