load dotenv files

This commit is contained in:
Baipyrus 2024-04-12 10:02:12 +02:00
parent aff5ec08bf
commit 543a5ad367

View File

@ -43,4 +43,9 @@ type Rectangle struct {
}
func main() {
// Load .env file if it exists
err := godotenv.Load(".env")
if err != nil {
log.Fatal("Error loading .env file")
}
}