// This creates a simple hello world window package linuxstatus import ( "go.wit.com/log" "go.wit.com/lib/gadgets" ) func InitLinuxStatus() *LinuxStatus { if me != nil { log.Log(WARN, "You have done New() twice. You can only do this once") return me } me = &LinuxStatus{ hidden: true, ready: false, } me.ifmap = make(map[int]*IFtype) me.ipmap = make(map[string]*IPtype) log.Log(WARN, "Creating the Window") me.window = gadgets.RawBasicWindow("OS Hostname Details") me.window.Make() draw(me) me.ready = true return me }