fn-go/function.go
fnkit c979088e0b
Some checks failed
/ deploy (push) Failing after 50s
initial commit - go function
2026-02-17 16:45:12 +00:00

17 lines
329 B
Go

package function
import (
"fmt"
"net/http"
"github.com/GoogleCloudPlatform/functions-framework-go/functions"
)
func init() {
functions.HTTP("HelloWorld", helloWorld)
}
// helloWorld writes "Hello, World!" to the HTTP response.
func helloWorld(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "Hello, World!")
}