Skip to content

Commit 17d1c3f

Browse files
committed
Move to main()
1 parent c7525c8 commit 17d1c3f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

main.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import (
1313
"github.com/steveyiyo/url-shortener/package/tools"
1414
)
1515

16-
func init() {
16+
func main() {
17+
1718
// Load .env
1819
err := godotenv.Load()
1920
if err != nil {
@@ -50,6 +51,3 @@ func init() {
5051
log.Fatal("Error: Listen IP Address is not valid")
5152
}
5253
}
53-
54-
func main() {
55-
}

0 commit comments

Comments
 (0)