String returns the string representation of a point, such as "(x,y)".
()
| 367 | |
| 368 | // String returns the string representation of a point, such as "(x,y)". |
| 369 | func (p Point) String() string { |
| 370 | return fmt.Sprintf("(%v,%v)", p.X, p.Y) |
| 371 | } |
| 372 | |
| 373 | //////////////////////////////////////////////////////////////// |
| 374 |