mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-25 11:31:46 +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 {
|
||||
R int `json:"r"`
|
||||
G int `json:"g"`
|
||||
B int `json:"b"`
|
||||
R uint8 `json:"r"`
|
||||
G uint8 `json:"g"`
|
||||
B uint8 `json:"b"`
|
||||
Endpoint Endpoint `json:"endpoint"`
|
||||
}
|
||||
|
||||
type Rectangle struct {
|
||||
X int `json:"x"`
|
||||
Y int `json:"y"`
|
||||
W int `json:"w"`
|
||||
H int `json:"h"`
|
||||
W uint `json:"w"`
|
||||
H uint `json:"h"`
|
||||
Endpoint Endpoint `json:"endpoint"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user