Last active
April 25, 2019 14:21
-
-
Save vkorbes/6a241ffb2337a56e7a3962258afdc292 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
| func main() { | |
| port := "8080" | |
| if len(os.Args) > 2 { | |
| port = os.Args[2] | |
| } | |
| http.HandleFunc("/", myFunctionName) | |
| fmt.Println(http.ListenAndServe(fmt.Sprintf(":%s", port), nil)) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment