aoc2024/day-04/internal/two/point.go

11 lines
132 B
Go
Raw Permalink Normal View History

package two
type point struct {
x, y int
direction direction
}
func newPoint(x, y int) point {
return point{x: x, y: y}
}