Serve
You can pass your own net.Listener
using the Serve
method.
Serve does not support the ****Prefork feature.
- app.Serve(ln net.Listener, tls ...*tls.Config) error
- if ln, err = net.Listen("tcp4", ":8080"); err != nil {
- log.Fatal(err)
- }
- app.Serve(ln)