threeflag

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Undefined = ThreeFlag{"undefined"}
	False     = ThreeFlag{"false"}
	True      = ThreeFlag{"true"}
)

Functions

This section is empty.

Types

type ThreeFlag

type ThreeFlag struct {
	// contains filtered or unexported fields
}

ThreeFlag implements a 3-value flag: "undefined", "true", "false" Uses slugs from: https://threedots.tech/post/safer-enums-in-go/

func (ThreeFlag) String

func (i ThreeFlag) String() string

Jump to

Keyboard shortcuts

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