| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | package viewsimport (	"fyne.io/fyne/v2")var (	// Views - the map of all the view components	views = make(map[string]fyne.CanvasObject))const (	Networks   = "networks"	NetDetails = "netdetails"	Notify     = "notification"	Join       = "join"	Confirm    = "confirm")// GetView - returns the requested view and sets the CurrentView statefunc GetView(viewName string) fyne.CanvasObject {	return views[viewName]}// SetView - sets a view in the views mapfunc SetView(viewName string, component fyne.CanvasObject) {	views[viewName] = component}// HideView - hides a specific viewfunc HideView(viewName string) {	views[viewName].Hide()}// ShowView - show's a specific viewfunc ShowView(viewName string) {	for k := range views {		if k == Notify {			continue		}		HideView(k)	}	views[viewName].Show()}
 |