chore(examples): improve logging and how to use (#266)
This commit is contained in:
parent
b031c1f297
commit
1535ea4f6c
3 changed files with 4 additions and 1 deletions
|
@ -24,6 +24,8 @@ func main() {
|
|||
Addr: ":" + port,
|
||||
Handler: router,
|
||||
}
|
||||
log.Printf("server listening on http://localhost:%s/", port)
|
||||
log.Println("press ctrl+c to stop")
|
||||
err := server.ListenAndServe()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue