Created
August 5, 2019 07:28
-
-
Save eranharel/b4d70de9882ada29560d1998d5facf15 to your computer and use it in GitHub Desktop.
A naive Health API implemented as a ping endpoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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