biflag

package
v0.26.10 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package biflag provides bi-state (set/not-set) standard flag library compatible flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBool

func NewBool(def bool) *biBool

func NewBoolVar

func NewBoolVar(p *bool, def bool) *biBool

Types

type Interface

type Interface interface {
	flag.Getter
	IsSet() bool
}

Interface is flag.Getter + IsSet method. All flags in this package implements this interface.

Jump to

Keyboard shortcuts

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