Skip to content

Instantly share code, notes, and snippets.

@janetkuo
Created May 15, 2016 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save janetkuo/063d667861a67a05ae4ea8779c501036 to your computer and use it in GitHub Desktop.
Save janetkuo/063d667861a67a05ae4ea8779c501036 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"net/http"
)
// hello world, the web server
func HelloServer(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, world!")
}
func main() {
http.HandleFunc("/hello", HelloServer)
http.ListenAndServe(":12345", nil)
}
Copy link

ghost commented May 15, 2016

You are beautiful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment