Created
November 6, 2019 19:00
-
-
Save grant/78f24cc9cadd382de7161257c1873576 to your computer and use it in GitHub Desktop.
Go Functions Framework – Hello, World
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
package hello | |
import ( | |
"net/http" | |
"fmt" | |
) | |
// HelloWorld writes "Hello, World!" to the HTTP response. | |
func HelloWorld(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprint(w, "Hello, World!\n") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment