aboutsummaryrefslogtreecommitdiff
path: root/pkg/packets/headers.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/packets/headers.go')
-rw-r--r--pkg/packets/headers.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/packets/headers.go b/pkg/packets/headers.go
index dbeab87..d92b22d 100644
--- a/pkg/packets/headers.go
+++ b/pkg/packets/headers.go
@@ -1,9 +1,8 @@
1package packets 1package packets
2 2
3import ( 3import (
4 "fmt"
5
6 "github.com/pektezol/bitreader" 4 "github.com/pektezol/bitreader"
5 "github.com/pektezol/demoparser/pkg/writer"
7) 6)
8 7
9type Headers struct { 8type Headers struct {
@@ -43,6 +42,6 @@ func ParseHeaders(reader *bitreader.Reader) Headers {
43 if headers.NetworkProtocol != 2001 { 42 if headers.NetworkProtocol != 2001 {
44 panic("this parser only supports demos from portal 2") 43 panic("this parser only supports demos from portal 2")
45 } 44 }
46 fmt.Printf("Headers: %+v\n", headers) 45 writer.AppendLine("Headers: %+v", headers)
47 return headers 46 return headers
48} 47}