enum

package
v0.0.0-...-9808bad Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Weekday

type Weekday int
const (
	Sunday Weekday = iota
	Monday
	Tuesday
	Wednesday
	Thursday
	Friday
	Saturday
)

func WeekdayString

func WeekdayString(s string) (Weekday, error)

WeekdayString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func WeekdayValues

func WeekdayValues() []Weekday

WeekdayValues returns all values of the enum

func (Weekday) IsAWeekday

func (i Weekday) IsAWeekday() bool

IsAWeekday returns "true" if the value is listed in the enum definition. "false" otherwise

func (Weekday) String

func (i Weekday) String() string

Jump to

Keyboard shortcuts

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