Created
July 4, 2019 12:44
-
-
Save vkorbes/4ee874d2e1a767e583d6d9baca23a29d to your computer and use it in GitHub Desktop.
This file contains 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
func main() { | |
http.HandleFunc("/", webserver) | |
http.ListenAndServe(":8080", nil) // This blocks! | |
message := get() // Code never gets here. | |
fmt.Println("The webserver said:", message) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment