Created
July 4, 2019 12:40
-
-
Save vkorbes/956f5c4e303fbe1f8e6382d8b8c05a97 to your computer and use it in GitHub Desktop.
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
| (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