First commit

This commit is contained in:
corrado.mulas
2024-11-20 00:51:56 +01:00
parent 68de7bf0b1
commit d5b34a9f82
2 changed files with 25 additions and 12 deletions

View File

@@ -3,12 +3,9 @@ package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"os"
"strings"
"github.com/joho/godotenv"
)
// RegistrationRequest represents the incoming registration request.
@@ -112,9 +109,3 @@ func validateEnvVars(vars []string) error {
}
return nil
}
func loadEnv() {
if err := godotenv.Load(); err != nil {
log.Println("No .env file found, using system environment variables")
}
}