Debian Codegraph @

_test/convert3.go

raw symbols SCIP
1 package main
2
3 import (
4 "fmt"
5 "net/http"
6 )
7
8 func main() {
9 next := func(rw http.ResponseWriter, req *http.Request) {
10 rw.Header().Set("Cache-Control", "max-age=20")
11 rw.WriteHeader(http.StatusOK)
12 }
13 f := http.HandlerFunc(next)
14 fmt.Printf("%T\n", f.ServeHTTP)
15 }
16
17 // Output:
18 // func(http.ResponseWriter, *http.Request)