While trying to understand http package, I see below
serverHandler{c.server}.ServeHTTP(w, w.req)
which is basically below,
type serverHandler struct {
srv *Server
}
and c.server is bascially srv *Server
type conn struct {
// server is the server on which the connection arrived.
// Immutable; never nil.
server *Server
SO, instead of doing above, is below doing the samething?
*c.server.ServeHTTP(w,w.req)