// This creates a simple hello world window package main import ( "runtime" // "net" // "github.com/fsnotify/fsnotify" "git.wit.org/wit/gui" arg "github.com/alexflint/go-arg" ) func main() { arg.MustParse(&args) // fmt.Println(args.Foo, args.Bar, args.User) log("Toolkit = ", args.Toolkit) me.ip = make(map[string]*IPtype) // gui.InitPlugins([]string{"andlabs"}) go checkNetworkChanges() log() log(true, "this is true") log(false, "this is false") sleep(.4) sleep(.3) sleep(.2) sleep("done scanning net") // exit("done scanning net") // watchNetworkInterfaces() gui.Main(initGUI) } /* Poll for changes to the networking settings */ func checkNetworkChanges() { for { sleep(2) if (runtime.GOOS == "linux") { scanInterfaces() } else { log("Windows and MacOS don't work yet") } } }