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/messages/types/netStringCmd.go | |
| parent | organize packets and classes (#9) (diff) | |
| download | sdp.go-verification.tar.gz sdp.go-verification.tar.bz2 sdp.go-verification.zip | |
init: will look at this laterverification
Diffstat (limited to 'pkg/messages/types/netStringCmd.go')
| -rw-r--r-- | pkg/messages/types/netStringCmd.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/messages/types/netStringCmd.go b/pkg/messages/types/netStringCmd.go index 57ae813..2f7e830 100644 --- a/pkg/messages/types/netStringCmd.go +++ b/pkg/messages/types/netStringCmd.go | |||
| @@ -1,10 +1,7 @@ | |||
| 1 | package messages | 1 | package messages |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "strings" | ||
| 5 | |||
| 6 | "github.com/pektezol/bitreader" | 4 | "github.com/pektezol/bitreader" |
| 7 | "github.com/pektezol/demoparser/pkg/writer" | ||
| 8 | ) | 5 | ) |
| 9 | 6 | ||
| 10 | type NetStringCmd struct { | 7 | type NetStringCmd struct { |
| @@ -15,6 +12,6 @@ func ParseNetStringCmd(reader *bitreader.Reader) NetStringCmd { | |||
| 15 | netStringCmd := NetStringCmd{ | 12 | netStringCmd := NetStringCmd{ |
| 16 | Command: reader.TryReadString(), | 13 | Command: reader.TryReadString(), |
| 17 | } | 14 | } |
| 18 | writer.TempAppendLine("\t\tCommand: \"%s\"", strings.TrimSpace(netStringCmd.Command)) | 15 | |
| 19 | return netStringCmd | 16 | return netStringCmd |
| 20 | } | 17 | } |