Exemple #1
0
func main() {

	err := web.Serve(12345, NewWidget)
	if err != nil {
		fmt.Println("Error: ", err)
		os.Exit(1)
	} else {
		fmt.Println("Exited successfully!")
	}
}
Exemple #2
0
func main() {
	err := web.Serve(*port, Page)
	if err != nil {
		panic("ListenAndServe: " + err.String())
	}
}