|
@@ -1,8 +1,8 @@
|
|
package main
|
|
package main
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ "fmt"
|
|
"log"
|
|
"log"
|
|
- "strconv"
|
|
|
|
"time"
|
|
"time"
|
|
|
|
|
|
_ "github.com/lib/pq"
|
|
_ "github.com/lib/pq"
|
|
@@ -27,8 +27,7 @@ func main() {
|
|
log.Fatal(err)
|
|
log.Fatal(err)
|
|
}
|
|
}
|
|
|
|
|
|
- port := strconv.FormatUint(uint64(serviceProvider.ConfigService().AppPort()), 10)
|
|
|
|
- if err = fiberApp.Listen(":" + port); err != nil {
|
|
|
|
|
|
+ if err = fiberApp.Listen(fmt.Sprintf(":%d", serviceProvider.ConfigService().AppPort())); err != nil {
|
|
log.Fatal(err)
|
|
log.Fatal(err)
|
|
}
|
|
}
|
|
}
|
|
}
|