enum

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSet

type StringSet map[string]struct{}

func NewStringSet

func NewStringSet(s ...string) (ss StringSet)

func (StringSet) Contains

func (ss StringSet) Contains(s string) (b bool)

func (StringSet) EnumType

func (ss StringSet) EnumType(name string) (t Type)

func (StringSet) Join

func (ss StringSet) Join(separator string) (s string)

type Type

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

func (Type) UnknownElement

func (t Type) UnknownElement(value string) (u UnknownElement)

type UnknownElement

type UnknownElement struct {
	Set             StringSet
	Value, TypeName string
}

func (UnknownElement) Error

func (u UnknownElement) Error() (s string)

Jump to

Keyboard shortcuts

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