Skip to content

Commit

Permalink
fix: wrong lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotxx committed Dec 27, 2021
1 parent daa1d11 commit 823abc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func setupRouter() *gin.Engine {
// authorized.Use(gin.BasicAuth(gin.Credentials{
// "foo": "bar",
// "manu": "123",
//}))
// }))
authorized := r.Group("/", gin.BasicAuth(gin.Accounts{
"foo": "bar", // user:foo password:bar
"manu": "123", // user:manu password:123
Expand Down Expand Up @@ -69,5 +69,8 @@ func setupRouter() *gin.Engine {
func main() {
r := setupRouter()
// Listen and Server in 0.0.0.0:8080
r.Run(":8080")
err := r.Run(":8080")
if err != nil {
return
}
}

0 comments on commit 823abc2

Please sign in to comment.