Exemple #1
0
func main() {
	showNets()

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

	vm.Exit()
}
Exemple #2
0
func main() {
	fmt.Println("Hello, world! I have", runtime.NumCPU(), "CPUs")
	vm.Exit()
}