package one import "slices" type direction int const ( N direction = iota E S W ) func directions(dir rune) direction { return direction(slices.Index([]rune{'^', '>', 'v', '<'}, dir)) }