diff --git a/counters.go b/counters.go index 9bb7b45..5fd6d67 100644 --- a/counters.go +++ b/counters.go @@ -66,7 +66,7 @@ func GetCountersHandler(c *gin.Context) { } defer rows.Close() - var counters []CounterWithStats + counters := []CounterWithStats{} // Initialize as empty slice, not nil for rows.Next() { var counter CounterWithStats err := rows.Scan(