rename package user to users

This commit is contained in:
Henry Dollman
2024-09-14 16:44:53 -04:00
parent 62d5ae8236
commit 138cbc13d6
2 changed files with 5 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
// Package hub handles updating systems and serving the web UI.
package hub package hub
import ( import (
@@ -5,7 +6,7 @@ import (
"beszel/internal/alerts" "beszel/internal/alerts"
"beszel/internal/entities/system" "beszel/internal/entities/system"
"beszel/internal/records" "beszel/internal/records"
"beszel/internal/user" "beszel/internal/users"
"beszel/site" "beszel/site"
"context" "context"
"crypto/ed25519" "crypto/ed25519"
@@ -51,7 +52,7 @@ func NewHub(app *pocketbase.PocketBase) *Hub {
func (h *Hub) Run() { func (h *Hub) Run() {
rm := records.NewRecordManager(h.app) rm := records.NewRecordManager(h.app)
am := alerts.NewAlertManager(h.app) am := alerts.NewAlertManager(h.app)
um := user.NewUserManager(h.app) um := users.NewUserManager(h.app)
// loosely check if it was executed using "go run" // loosely check if it was executed using "go run"
isGoRun := strings.HasPrefix(os.Args[0], os.TempDir()) isGoRun := strings.HasPrefix(os.Args[0], os.TempDir())

View File

@@ -1,4 +1,5 @@
package user // Package user handles user-related custom functionality.
package users
import ( import (
"log" "log"