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) }