We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdf2522 commit e083606Copy full SHA for e083606
2 files changed
.gitignore
@@ -14,4 +14,4 @@ backend
14
*.out
15
16
# Dependency directories (remove the comment below to include it)
17
-# vendor/
+# vendor/
cmd/main.go
@@ -1,16 +1,16 @@
1
package main
2
3
import (
4
- "fmt"
5
- "log"
6
- "net/http"
7
- "github.com/hulk0301/example-app-backend/internal/router"
+ "fmt"
+ "github.com/hulk0301/example-app-backend/internal/router"
+ "log"
+ "net/http"
8
)
9
10
const port = 8080
11
12
func main() {
13
- http.HandleFunc("/", router.HandleRequest)
+ http.HandleFunc("/", router.HandleRequest)
log.Printf("Server listening on http://localhost:%d/", port)
- log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", port) , nil))
+ log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil))
}
0 commit comments