Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidType = fmt.Errorf("not a valid Type, try [%s]", strings.Join(_TypeNames, ", "))
Functions ¶
Types ¶
type Type ¶ added in v0.14.0
type Type int
Type ENUM(desktop, code, qr)
func TypeValues ¶ added in v0.14.0
func TypeValues() []Type
TypeValues returns a list of the values for Type
func (*Type) Get ¶ added in v0.14.0
func (x *Type) Get() interface{}
Get implements the Golang flag.Getter interface func.
func (Type) IsValid ¶ added in v0.14.0
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
Click to show internal directories.
Click to hide internal directories.