Created
September 28, 2017 01:09
-
-
Save mweagle/18bdf3a772bc54e9eb8ccd903e3ed710 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
// Standard http.HandlerFunc() that will be run as a lambda function | |
func helloSpartaWorld(w http.ResponseWriter, r *http.Request) { | |
messageText := os.Getenv("MESSAGE") | |
if "" == messageText { | |
messageText = "$MESSAGE not defined" | |
} | |
fmt.Fprint(w, messageText) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment