All checks were successful
timw4mail/gilo/pipeline/head This commit looks good
15 lines
160 B
Go
15 lines
160 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}
|
|
}
|