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

Function init

functions/knative/multiple-functions-go/http.go:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func init() {
12 functions.HTTP("Foo", Foo, functions.WithFunctionPath("/foo"))
13 functions.HTTP("Bar", Bar, functions.WithFunctionPath("/bar"))
14
15}
16
17func Foo(w http.ResponseWriter, r *http.Request) {
18 response := map[string]string{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected