📅  最后修改于: 2022-03-11 14:45:02.228000             🧑  作者: Mango
type Direction int
const (
North Direction = iota
East
South
West
)
func (d Direction) String() string {
return [...]string{"North", "East", "South", "West"}[d]
}