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