MCPcopy Create free account
hub / github.com/PacktPublishing/System-Programming-Essentials-with-Go / handler

Function handler

ch11/tracing_http/main.go:21–23  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

19}
20
21func handler(w http.ResponseWriter, r *http.Request) {
22 fmt.Fprintf(w, "Hello, Tracing!")
23}
24
25func main() {
26 http.HandleFunc("/", TraceHandler(handler))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected