benerin error

This commit is contained in:
farrel
2026-09-22 14:17:55 +07:00
parent ece60afe1d
commit c7e17bf89e
11 changed files with 144 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package config
import (
"fmt"
"github.com/joho/godotenv"
)
func LoadEnv() error {
err := godotenv.Load("pkg/.env")
if err != nil {
return fmt.Errorf("Error loading .env file: %v", err)
}
return nil
}