mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 12:01:45 +00:00
better more robust typing
This commit is contained in:
parent
775ea88bd3
commit
82e1a2c904
10
main.go
10
main.go
@ -31,17 +31,17 @@ type Update struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Color struct {
|
type Color struct {
|
||||||
R int `json:"r"`
|
R uint8 `json:"r"`
|
||||||
G int `json:"g"`
|
G uint8 `json:"g"`
|
||||||
B int `json:"b"`
|
B uint8 `json:"b"`
|
||||||
Endpoint Endpoint `json:"endpoint"`
|
Endpoint Endpoint `json:"endpoint"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Rectangle struct {
|
type Rectangle struct {
|
||||||
X int `json:"x"`
|
X int `json:"x"`
|
||||||
Y int `json:"y"`
|
Y int `json:"y"`
|
||||||
W int `json:"w"`
|
W uint `json:"w"`
|
||||||
H int `json:"h"`
|
H uint `json:"h"`
|
||||||
Endpoint Endpoint `json:"endpoint"`
|
Endpoint Endpoint `json:"endpoint"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user