14 lines
197 B
Go
14 lines
197 B
Go
|
package hypr
|
||
|
|
||
|
import "encoding/json"
|
||
|
|
||
|
type Point struct {
|
||
|
X int `json:"x"`
|
||
|
Y int `json:"y"`
|
||
|
}
|
||
|
|
||
|
func (p Point) String() string {
|
||
|
data, _ := json.MarshalIndent(p, "", "\t")
|
||
|
return string(data)
|
||
|
}
|