Skip to content

Instantly share code, notes, and snippets.

@vkorbes
Created July 4, 2019 12:40
Show Gist options
  • Select an option

  • Save vkorbes/956f5c4e303fbe1f8e6382d8b8c05a97 to your computer and use it in GitHub Desktop.

Select an option

Save vkorbes/956f5c4e303fbe1f8e6382d8b8c05a97 to your computer and use it in GitHub Desktop.
(dlv)
> main.main() ./main.go:12 (PC: 0x6fcbb4)
7: "fmt"
8: )
9:
10: func main() {
11: http.HandleFunc("/", webserver)
=> 12: http.ListenAndServe(":8080", nil)
13: message := get()
14: fmt.Println("The webserver said:", message)
15: }
16:
17: func webserver(w http.ResponseWriter, r *http.Request) {
(dlv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment