41 lines
698 B
Go
41 lines
698 B
Go
// 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"})
|
|
|
|
|
|
if (runtime.GOOS == "linux") {
|
|
scanInterfaces()
|
|
} else {
|
|
log("Windows and MacOS don't work yet")
|
|
exit()
|
|
}
|
|
|
|
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)
|
|
}
|