Skip to content

Commit

Permalink
Minor port refactoring on ListenAndServe
Browse files Browse the repository at this point in the history
  • Loading branch information
klipitkas committed Oct 22, 2019
1 parent 2f96c1f commit d236222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
log.Printf("FS - Port: %v | Dir: %v", port, dir)

// Start the file server.
if err := http.ListenAndServe(":"+fmt.Sprintf("%d", port), fs); err != nil {
if err := http.ListenAndServe(fmt.Sprintf(":%d", port), fs); err != nil {
log.Fatalf("server listen on port %v: %v", port, err)
}

Expand Down

0 comments on commit d236222

Please sign in to comment.