package main type WidgetType int const ( WidgetLabel WidgetType = iota WidgetOnOff ) type Widget struct { Type WidgetType X int Y int DatapointID int Attributes map[string]string } type Dashboard struct { Widgets []Widget }