diff --git a/internal/services/user_service.go b/internal/services/user_service.go index 1abbcce..eec88cd 100644 --- a/internal/services/user_service.go +++ b/internal/services/user_service.go @@ -25,7 +25,7 @@ func NewUserService(db *sql.DB) *UserService { // List a bunch of users func (usrSrv *UserService) List(offset int, limit int) ([]models.User, error) { - users := []models.User{} + users := make([]models.User, 0) // Get the list of users queryString := `SELECT