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

17 lines
200 B
Go

package two
import "fmt"
type point struct {
x int
y int
}
func newPoint(x, y int) point {
return point{x, y}
}
func (p *point) String() string {
return fmt.Sprintf("x: %d y: %d", p.x, p.y)
}