From 123f510a41347e58cfdb659b0f3696c9a41f4277 Mon Sep 17 00:00:00 2001 From: William Date: Fri, 12 Apr 2024 12:20:23 +0200 Subject: [PATCH] Fix array issue Signed-off-by: William --- internal/services/user_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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