mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 12:01:45 +00:00
JSON metadata for marshaling
This commit is contained in:
parent
454ef40765
commit
43e2e18ded
20
main.go
20
main.go
@ -25,22 +25,22 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Update struct {
|
type Update struct {
|
||||||
endpoint Endpoint
|
Endpoint Endpoint `json:"endpoint"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Color struct {
|
type Color struct {
|
||||||
R int
|
R int `json:"r"`
|
||||||
G int
|
G int `json:"g"`
|
||||||
B int
|
B int `json:"b"`
|
||||||
endpoint Endpoint
|
Endpoint Endpoint `json:"endpoint"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Rectangle struct {
|
type Rectangle struct {
|
||||||
X int
|
X int `json:"x"`
|
||||||
Y int
|
Y int `json:"y"`
|
||||||
W int
|
W int `json:"w"`
|
||||||
H int
|
H int `json:"h"`
|
||||||
endpoint Endpoint
|
Endpoint Endpoint `json:"endpoint"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetEnvFallback(key string, fallback ...string) (string, error) {
|
func GetEnvFallback(key string, fallback ...string) (string, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user