Skip to content

Instantly share code, notes, and snippets.

@vkorbes
Created July 4, 2019 12:42
Show Gist options
  • Save vkorbes/65015ffcceded2b5460dca20f883a8f7 to your computer and use it in GitHub Desktop.
Save vkorbes/65015ffcceded2b5460dca20f883a8f7 to your computer and use it in GitHub Desktop.
> net/http.(*Server).ListenAndServe() /usr/local/go/src/net/http/server.go:2752 (PC: 0x6c6248)
2747: //
2748: // If srv.Addr is blank, ":http" is used.
2749: //
2750: // ListenAndServe always returns a non-nil error. After Shutdown or Close,
2751: // the returned error is ErrServerClosed.
=>2752: func (srv *Server) ListenAndServe() error {
2753: if srv.shuttingDown() {
2754: return ErrServerClosed
2755: }
2756: addr := srv.Addr
2757: if addr == "" {
(dlv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment