From 5890e490d5cab6b3e4c07bd7b3e355594ee5133c Mon Sep 17 00:00:00 2001 From: Marcel Otte Date: Mon, 15 Nov 2021 22:54:36 +0100 Subject: [PATCH] Using ..., something new again :) --- events/events.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/events/events.go b/events/events.go index ee46c8a..6c3d92a 100644 --- a/events/events.go +++ b/events/events.go @@ -47,8 +47,7 @@ func process() { if err != nil && err != io.EOF { panic(err) } - app := buf[0:nr] - data = append(data, app) + data = append(data, buf[0:nr]...) if err == io.EOF { break }