mirror of
https://github.com/golang/go
synced 2024-11-02 11:50:30 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue