diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-23 10:06:39 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-23 10:06:39 +0300 |
| commit | 9991801e4037d8dc530876584f21c1674c9e3bba (patch) | |
| tree | efa20cd6aa6556cfdea81f4c99251e0688847ca6 /pkg/packets/headers.go | |
| parent | organize packets and classes (#9) (diff) | |
| download | sdp.go-9991801e4037d8dc530876584f21c1674c9e3bba.tar.gz sdp.go-9991801e4037d8dc530876584f21c1674c9e3bba.tar.bz2 sdp.go-9991801e4037d8dc530876584f21c1674c9e3bba.zip | |
init: will look at this laterverification
Diffstat (limited to 'pkg/packets/headers.go')
| -rw-r--r-- | pkg/packets/headers.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/packets/headers.go b/pkg/packets/headers.go index d92b22d..124eb95 100644 --- a/pkg/packets/headers.go +++ b/pkg/packets/headers.go | |||
| @@ -2,7 +2,6 @@ package packets | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "github.com/pektezol/bitreader" | 4 | "github.com/pektezol/bitreader" |
| 5 | "github.com/pektezol/demoparser/pkg/writer" | ||
| 6 | ) | 5 | ) |
| 7 | 6 | ||
| 8 | type Headers struct { | 7 | type Headers struct { |
| @@ -42,6 +41,6 @@ func ParseHeaders(reader *bitreader.Reader) Headers { | |||
| 42 | if headers.NetworkProtocol != 2001 { | 41 | if headers.NetworkProtocol != 2001 { |
| 43 | panic("this parser only supports demos from portal 2") | 42 | panic("this parser only supports demos from portal 2") |
| 44 | } | 43 | } |
| 45 | writer.AppendLine("Headers: %+v", headers) | 44 | |
| 46 | return headers | 45 | return headers |
| 47 | } | 46 | } |