hypr/model_misc.go
2024-02-09 20:24:48 +01:00

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