Example #1
0
File: main.go Project: jteso/alone
func main() {
	showNets()

	http.HandleFunc("/", helloWorld)
	if err := http.ListenAndServe(":80", nil); err != nil {
		fmt.Printf("error serving HTTP: %v", err)
		return
	}

	vm.Exit()
}
Example #2
0
File: main.go Project: jteso/alone
func main() {
	fmt.Println("Hello, world! I have", runtime.NumCPU(), "CPUs")
	vm.Exit()
}