mirror of
https://github.com/gosticks/go-hue-interface.git
synced 2025-10-16 11:45:35 +00:00
19 lines
372 B
Go
19 lines
372 B
Go
package main
|
|
|
|
// -------------------------------------------------------------
|
|
// ~ Interfaces & Types
|
|
// -------------------------------------------------------------
|
|
|
|
type BridgeState struct {
|
|
Lights map[string]*Light `json:"lights"`
|
|
}
|
|
|
|
func (bs *BridgeState) String() string {
|
|
str := ""
|
|
for k, l := range bs.Lights {
|
|
str += k + ": " + l.String()
|
|
}
|
|
|
|
return str
|
|
}
|