aoc2024/day-21/internal/pad/node.go

15 lines
182 B
Go

package pad
type coords struct {
x, y int
}
type node struct {
coords
value rune
}
func newNode(x, y int, value rune) node {
return node{coords: coords{x, y}, value: value}
}