enum

package
v0.0.0-...-e90a610 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 0 Imported by: 0

README

enum

Idiomatic way to implement an enumerated type from https://yourbasic.org/golang/iota/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int

Direction defines direction

const (
	North Direction = iota
	East
	South
	West
)

func (Direction) String

func (d Direction) String() string

String returns string representation of Direction

Jump to

Keyboard shortcuts

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