Last active
May 22, 2021 10:32
-
-
Save dipeshhkc/8be7a48df956fd9e0f511d5d8d8507de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func loadenv() { | |
if err := godotenv.Load(); err != nil { | |
log.Fatal("Error loading .env file") | |
} | |
} | |
func main() { | |
fmt.Println("Main Application Starts") | |
//Loading Environmental Variable | |
loadenv() | |
log.Fatal(route.RunAPI(":8090")) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment