flag

package
v0.0.0-...-6cf66fa Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0, MIT Imports: 1 Imported by: 42

Documentation

Overview

Package flag wraps flag primitives.

Index

Constants

View Source
const ContinueOnError = flag.ContinueOnError

ContinueOnError is an alias for flag.ContinueOnError.

Variables

View Source
var (
	Bool        = flag.Bool
	CommandLine = flag.CommandLine
	Duration    = flag.Duration
	Float64     = flag.Float64
	Int         = flag.Int
	Int64       = flag.Int64
	Lookup      = flag.Lookup
	NewFlagSet  = flag.NewFlagSet
	Parse       = flag.Parse
	String      = flag.String
	StringVar   = flag.StringVar
	Uint        = flag.Uint
	Uint64      = flag.Uint64
	Var         = flag.Var
)

Aliases for flag functions.

Functions

func Get

func Get(v flag.Value) any

Get returns the flag's underlying object.

Types

type Flag

type Flag = flag.Flag

Flag is an alias for flag.Flag.

type FlagSet

type FlagSet = flag.FlagSet

FlagSet is an alias for flag.FlagSet.

Jump to

Keyboard shortcuts

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