Skip to content

Instantly share code, notes, and snippets.

@cyantarek
Created February 17, 2019 05:23
Show Gist options
  • Save cyantarek/efc310910d38d871f96d4847beec2cbb to your computer and use it in GitHub Desktop.
Save cyantarek/efc310910d38d871f96d4847beec2cbb to your computer and use it in GitHub Desktop.
package main
import (
"log"
"net/http"
)
func main() {
http.HandleFunc("/protected", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello, I'm protected"))
})
log.Fatal(http.ListenAndServe(":9096", nil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment