change map to slice

This commit is contained in:
Adrian Zuercher
2025-07-29 14:20:54 +02:00
parent 4221815def
commit b9c6aa9d02
2 changed files with 24 additions and 21 deletions

View File

@@ -4,7 +4,7 @@ import "slices"
// bus model
type Bus struct {
Name string `json:"name,omitempty"`
Name string `json:"name"`
Address []uint `json:"address,omitempty"` // address of bus
Topic *Topic `json:"topic,omitempty"` // address of bus
}