This commit is contained in:
angelicatesvara07-crypto
2026-09-15 14:17:20 +07:00
parent a0e9964b92
commit 429f01edbc
3 changed files with 18 additions and 0 deletions
+15
View File
@@ -1 +1,16 @@
package config
import (
"fmt"
"github.com/joho/godotenv"
)
func LoadEnv() error {
err := godotenv.Load()
if err != nil {
return fmt.Errorf("Error loading .env file: %w", err)
}
return nil
}