All checks were successful
timw4mail/gilo/pipeline/head This commit looks good
20 lines
222 B
Go
20 lines
222 B
Go
package gilo
|
|
|
|
type Point struct {
|
|
X int
|
|
Y int
|
|
}
|
|
|
|
func DefaultPoint() *Point {
|
|
return &Point{0, 0}
|
|
}
|
|
|
|
func NewPoint(x, y int) *Point {
|
|
return &Point{x, y}
|
|
}
|
|
|
|
func (p *Point) Clone() *Point {
|
|
return &Point{p.X, p.Y}
|
|
}
|
|
|