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

Function main

functions/knative/azure-func-go/handler.go:19–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func main() {
20 listenAddr := ":8080"
21 if val, ok := os.LookupEnv("FUNCTIONS_CUSTOMHANDLER_PORT"); ok {
22 listenAddr = ":" + val
23 }
24 http.HandleFunc("/api/HttpExample", helloHandler)
25 log.Printf("About to listen on %s. Go to https://127.0.0.1%s/", listenAddr, listenAddr)
26 log.Fatal(http.ListenAndServe(listenAddr, nil))
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected