MCPcopy Create free account
hub / github.com/OpenFunction/samples / HelloWorld

Function HelloWorld

functions/knative/hello-world-go/hello.go:16–19  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

14}
15
16func HelloWorld(w http.ResponseWriter, r *http.Request) {
17 vars := ofctx.VarsFromCtx(r.Context())
18 fmt.Fprintf(w, "Hello, %s!\n", vars["greeting"])
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected