Initial commit including .env

This commit is contained in:
2026-06-22 17:43:40 +05:30
commit c577d47b75
286 changed files with 85878 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package main
import (
"fmt"
"doormile/config"
"doormile/db"
"doormile/models"
"github.com/joho/godotenv"
)
func main() {
godotenv.Load()
cfg := config.Load()
db.Connect(cfg)
var users []models.AppUser
db.DB.Find(&users)
for _, u := range users {
fmt.Printf("%d: %s (%s)\n", u.Userid, u.Authname, u.Email)
}
}