JSON metadata for marshaling

This commit is contained in:
Baipyrus 2024-04-12 10:49:20 +02:00
parent 454ef40765
commit 43e2e18ded

20
main.go
View File

@ -25,22 +25,22 @@ const (
)
type Update struct {
endpoint Endpoint
Endpoint Endpoint `json:"endpoint"`
}
type Color struct {
R int
G int
B int
endpoint Endpoint
R int `json:"r"`
G int `json:"g"`
B int `json:"b"`
Endpoint Endpoint `json:"endpoint"`
}
type Rectangle struct {
X int
Y int
W int
H int
endpoint Endpoint
X int `json:"x"`
Y int `json:"y"`
W int `json:"w"`
H int `json:"h"`
Endpoint Endpoint `json:"endpoint"`
}
func GetEnvFallback(key string, fallback ...string) (string, error) {