mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-10 14:50:46 +00:00
17 lines
200 B
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)
|
|
}
|