Explorar el Código

print message only on successful startup

Lucas Stadler %!s(int64=11) %!d(string=hace) años
padre
commit
0e26022011
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      go/favicon.go

+ 1 - 1
go/favicon.go

@ -30,12 +30,12 @@ func main() {
30 30
		flag.Set("p", p)
31 31
	}
32 32
33
	fmt.Printf("listening on :%d\n", *port)
34 33
	err := http.ListenAndServe(fmt.Sprintf(":%d", *port), nil)
35 34
	if err != nil {
36 35
		fmt.Println("error: ", err)
37 36
		os.Exit(1)
38 37
	}
38
	fmt.Printf("listening on :%d\n", *port)
39 39
}
40 40
41 41
func HandleGetFavicon(w http.ResponseWriter, r *http.Request) {