Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Codes = []string{ ConiferHills: "CH", GrassyHills: "GH", OceanCoast: "OC", Prairie: "PR", River: "R", RiverFord: "RF", RockyHills: "RH", Swamp: "SW", } Description = []string{ ConiferHills: "Conifer Hills", GrassyHills: "Grassy Hills", OceanCoast: "Ocean Coast", Prairie: "Prairie", River: "River", RiverFord: "River Fords", RockyHills: "Rocky Hills", Swamp: "Swamp", } LongDescription = []string{ ConiferHills: "Conifer hills.", GrassyHills: "Grassy hills.", OceanCoast: "Ocean coastline.", Prairie: "Prairie", River: "River with no crossings.", RiverFord: "Shallow spots that are ways across rivers.", RockyHills: "Rocky hills.", Swamp: "Swamp", } )
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge int
const ( Unknown Edge = iota ConiferHills GrassyHills OceanCoast Prairie River RiverFord RockyHills Swamp )
the enums for Edge must be sorted by the Code string value. if they aren't, the UnmarshalJSON will fail.
func (Edge) Description ¶
Description returns a description of the code.
func (Edge) LongDescription ¶
LongDescription returns an expanded description of the code.
func (Edge) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface
func (*Edge) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.