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

Function init

functions/knative/hello-world-go/hello.go:11–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func init() {
12 functions.HTTP("HelloWorld", HelloWorld,
13 functions.WithFunctionPath("/{greeting}"))
14}
15
16func HelloWorld(w http.ResponseWriter, r *http.Request) {
17 vars := ofctx.VarsFromCtx(r.Context())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected