// Entry point of the package main
Entry point of the package main
// Entry point of the package main
func main() {
  duck := "QuackyQuack"
	http.HandleFunc("/", handle)
	log.Printf("%q on localhost:%q\n",duck,port)
	log.Fatal(http.ListenAndServe(":"+port, nil))
}
func main ( ) { duck := " " http . HandleFunc ( " " , handle ) log . Printf ( " \n " , duck , port ) log . Fatal ( http . ListenAndServe ( " " + port , nil ) ) }
Entry point of the package main
Entry point of the package main
//But hey we can do that weird (:=) declaration in here // Also if it looks like a string, prints like a string, it's probably a string // Handle a route // Oh look format specifiers %q, %s, %d // And serve it and pipe the error value directly into a log // How do we test this? Let's bring out the curls and the postman's? // Ah no, lets TDD this program. // go run simpleserver_0.go and wait...Don't you use curl or anything else..