tflags

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCmd

type TestCmd uint8

TestCmd -- enum

const (
	TestCmdUnknown TestCmd = 1 << iota
	TestCmdIsPlural
	TestCmdIsSingular
	TestCmdPlural
	TestCmdSingular
	TestCmdAll = TestCmdIsPlural + TestCmdIsSingular + TestCmdPlural + TestCmdSingular
)

TestCmd -- enum constants

func TestCmdString

func TestCmdString(s string) TestCmd

TestCmdString -- convert string reprensentation in to enum value

func (*TestCmd) Clear

func (t *TestCmd) Clear(flag TestCmd)

Clear -- clear flag

func (TestCmd) Has

func (t TestCmd) Has(flag TestCmd) bool

Has -- is flag set?

func (*TestCmd) Set

func (t *TestCmd) Set(flag TestCmd)

Set -- set flag

func (TestCmd) String

func (t TestCmd) String() string

String -- stringify TestCmd

func (*TestCmd) Toggle

func (t *TestCmd) Toggle(flag TestCmd)

Toggle -- toggle flag state

Jump to

Keyboard shortcuts

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