flagpkg

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

flagpkg package provides some additional flag functions. (InverseFlagVar)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InverseBoolVar

func InverseBoolVar(p *bool, name string, value bool, usage string)

InverseBoolVar defines a flag that inverts a bool value.

For example, "--no-foo" would set foo to false.

Using --no-foo=false would set to true.

Omitting flag does not change the value at all.

If multiple flag.BoolVar and InverseBoolVar are used, the last one (on cmdline) wins.

Types

This section is empty.

Jump to

Keyboard shortcuts

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