如何在Go中创建一个作为映射键的数组。
例如,在Ruby中我可以这样实现:
quarters = {
[1, 2, 3] => 'First quarter',
[4, 5, 6] => 'Second quarter',
[7, 8 ,9] => 'Third quarter',
[10, 11, 12] => 'Fourh quarter',
}
quarters[[1, 2, 3]]
# => "First quarter"
在Golang中会是什么样子呢?