()
| 382 | } |
| 383 | |
| 384 | func main() { |
| 385 | ifaces := Interfaces{ |
| 386 | { |
| 387 | Name: "http.ResponseWriter", |
| 388 | Funcs: []*InterfaceFunc{ |
| 389 | {"Header", nil, "http.Header"}, |
| 390 | {"WriteHeader", FuncArgs{{"code", "int"}}, ""}, |
| 391 | {"Write", FuncArgs{{"b", "[]byte"}}, "int, error"}, |
| 392 | }, |
| 393 | }, |
| 394 | { |
| 395 | Name: "http.Flusher", |
| 396 | Funcs: []*InterfaceFunc{ |
| 397 | {"Flush", nil, ""}, |
| 398 | }, |
| 399 | }, |
| 400 | { |
| 401 | Name: "httpFlushError", // Introduced in Go 1.20. |
| 402 | Funcs: []*InterfaceFunc{ |
| 403 | {"FlushError", nil, "error"}, |
| 404 | }, |
| 405 | }, |
| 406 | { |
| 407 | Name: "http.CloseNotifier", |
| 408 | Funcs: []*InterfaceFunc{ |
| 409 | {"CloseNotify", nil, "<-chan bool"}, |
| 410 | }, |
| 411 | }, |
| 412 | { |
| 413 | Name: "http.Hijacker", |
| 414 | Funcs: []*InterfaceFunc{ |
| 415 | {"Hijack", nil, "net.Conn, *bufio.ReadWriter, error"}, |
| 416 | }, |
| 417 | }, |
| 418 | { |
| 419 | Name: "io.ReaderFrom", |
| 420 | Funcs: []*InterfaceFunc{ |
| 421 | {"ReadFrom", FuncArgs{{"src", "io.Reader"}}, "int64, error"}, |
| 422 | }, |
| 423 | }, |
| 424 | { |
| 425 | Name: "deadliner", // Introduced in Go 1.20. |
| 426 | Funcs: []*InterfaceFunc{ |
| 427 | {"SetReadDeadline", FuncArgs{{"deadline", "time.Time"}}, "error"}, |
| 428 | {"SetWriteDeadline", FuncArgs{{"deadline", "time.Time"}}, "error"}, |
| 429 | }, |
| 430 | }, |
| 431 | { |
| 432 | Name: "fullDuplexEnabler", // Introduced in Go 1.21. |
| 433 | Funcs: []*InterfaceFunc{ |
| 434 | {"EnableFullDuplex", nil, "error"}, |
| 435 | }, |
| 436 | }, |
| 437 | { |
| 438 | Name: "http.Pusher", |
| 439 | Funcs: []*InterfaceFunc{ |
| 440 | {"Push", FuncArgs{ |
| 441 | {"target", "string"}, |
nothing calls this directly
no test coverage detected
searching dependent graphs…