2015-07-22 11 views
6

Dökümantasyonda http.Server için tip beyanını okuyordum ve buna rastladım. Eğer srv.ListenAndServe() ve srv.Addr boş bir dize ararsanızPort ": http", http.Server'da ne anlama geliyor?

type Server struct { 
    Addr string // TCP address to listen on, ":http" if empty 
    // more... 
} 

ardından ListenAndServe":http"net.Listen için (http/server.go) geçecek.

":http" ne anlama geliyor?

cevap