15 lines
168 B
Go
15 lines
168 B
Go
|
package utils
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
|
||
|
"github.com/joho/godotenv"
|
||
|
)
|
||
|
|
||
|
func LoadConfig() {
|
||
|
err := godotenv.Load()
|
||
|
if err != nil {
|
||
|
log.Fatal("Error loading .env file")
|
||
|
}
|
||
|
}
|