hypr/model_misc.go

14 lines
197 B
Go
Raw Permalink Normal View History

2024-02-09 20:24:48 +01:00
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)
}