package pad func neighbours(c coords, r rune) coords { switch r { case '^': return coords{c.x, c.y - 1} case '>': return coords{c.x + 1, c.y} case 'v': return coords{c.x, c.y + 1} case '<': return coords{c.x - 1, c.y} default: return c } }