refac: removed 7 direct and 12 indirect go modules for custom code instead

This commit is contained in:
Florian Sylvain committed 2026-10-21 23:13:46 +02:00
1 parent cfcf108488
commit c68e9a7858
73 files changed
+2455 -428

No files matched your search

+6 -3
View File
@@ -7,6 +7,7 @@ import (
"context"
"errors"
"fmt"
"io/fs"
"log"
"net"
"net/http"
@@ -15,8 +16,6 @@ import (
"slices"
"syscall"
"time"
"github.com/joho/godotenv"
)
var version = "dev"
@@ -106,9 +105,13 @@ func initEnvVariables() {
func loadEnvFile() {
for _, envLocation := range possibleEnvFileLocations {
if godotenv.Load(envLocation) == nil {
err := config.LoadDotenv(envLocation)
if err == nil {
return
}
if !errors.Is(err, fs.ErrNotExist) {
log.Println("WARNING: Could not parse env file:", err)
}
}
log.Println("WARNING: Could not load any .env file")
}