Example #1
0
func main() {
	http.HandleFunc("/hello", HelloServer)
	err := http.ListenAndServer(":12345", nil)
	if err != nill {
		log.Fatal("ListenAndServer: ", err)
	}
}
Example #2
0
File: main.go Project: wcgh/go_read
func main() {
	http.HandlerFunc("/", indexHandler)
	http.HandlerFunc("/logout", logout)
	http.ListenAndServer("localhost:80", nil)

}