Skip to content

Instantly share code, notes, and snippets.

@grant grant/function.go
Created Nov 6, 2019

Embed
What would you like to do?
Go Functions Framework – Hello, World
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
You can’t perform that action at this time.