flags

package
v0.0.0-...-9ec6d29 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package flags contains globally-visible flags.

Index

Constants

This section is empty.

Variables

View Source
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

func Env(value string) (string, error)

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

type StringMap map[string]string

StringMap is a string to string map.

func (*StringMap) Get

func (s *StringMap) Get() any

Get implements flag.Value.Get.

func (*StringMap) Set

func (s *StringMap) Set(value string) error

Set implements flag.Value.Set.

func (*StringMap) String

func (s *StringMap) String() string

String implements fmt.Stringer.String.

Jump to

Keyboard shortcuts

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