mirror of
https://github.com/golang/go
synced 2024-11-21 23:14:40 -07:00
net/http: fix trivial example server
R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5479061
This commit is contained in:
parent
d8d321068b
commit
3308891c9d
@ -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.String())
|
||||
// log.Fatal("ListenAndServe: ", err.Error())
|
||||
// }
|
||||
// }
|
||||
func ListenAndServe(addr string, handler Handler) error {
|
||||
|
Loading…
Reference in New Issue
Block a user