Go每日一题 今日(2022-08-03) 的题目如下
1023 次点击 · 5 赞 ·不到1分钟之前 开始浏览   · 来源「Golang来啦」
下面这段代码输出什么?
type Direction int
const (
	North Direction = iota
	East
	South
	West
)
func (d Direction) String() string {
	return [...]string{"North", "East", "South", "West"}[d]
}
func main() {
	fmt.Println(South)
}