Skip to content

Instantly share code, notes, and snippets.

@eranharel
Created August 5, 2019 07:28
Show Gist options
  • Save eranharel/b4d70de9882ada29560d1998d5facf15 to your computer and use it in GitHub Desktop.
Save eranharel/b4d70de9882ada29560d1998d5facf15 to your computer and use it in GitHub Desktop.
A naive Health API implemented as a ping endpoint
http.HandleFunc("/health", func(w http.ResponseWriter, request *http.Request) {
w.WriteHeader(200)
})
log.Fatal(http.ListenAndServe(":8080", nil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment