mirror of https://github.com/golang/go.git
net/http: further simplify example program
(should have caught this in review.) R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5478066
This commit is contained in:
parent
7e797be7a3
commit
e505c9ccac
|
|
@ -1027,7 +1027,7 @@ func (srv *Server) Serve(l net.Listener) error {
|
|||
// http.HandleFunc("/hello", HelloServer)
|
||||
// err := http.ListenAndServe(":12345", nil)
|
||||
// if err != nil {
|
||||
// log.Fatal("ListenAndServe: ", err.Error())
|
||||
// log.Fatal("ListenAndServe: ", err)
|
||||
// }
|
||||
// }
|
||||
func ListenAndServe(addr string, handler Handler) error {
|
||||
|
|
|
|||
Loading…
Reference in New Issue