Skip to content

Commit b0d4d62

Browse files
committed
go.mod: v2 -> v3 fix import paths
1 parent d960107 commit b0d4d62

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+172
-172
lines changed

.github/workflows/protobuf.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ jobs:
4343
if: env.PROTOBUFS_CHANGED == 'true'
4444
run: |
4545
cd pkg/demoinfocs/msg
46-
sed -i '1s/^/option go_package = "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/msg";\n\n/' proto/cstrike15_usermessages.proto
47-
sed -i '1s/^/option go_package = "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/msg";\n\n/' proto/cstrike15_gcmessages.proto
48-
sed -i '1s/^/option go_package = "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/msg";\n\n/' proto/engine_gcmessages.proto
49-
sed -i '1s/^/option go_package = "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/msg";\n\n/' proto/netmessages.proto
50-
sed -i '1s/^/option go_package = "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/msg";\n\n/' proto/steammessages.proto
46+
sed -i '1s/^/option go_package = "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg";\n\n/' proto/cstrike15_usermessages.proto
47+
sed -i '1s/^/option go_package = "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg";\n\n/' proto/cstrike15_gcmessages.proto
48+
sed -i '1s/^/option go_package = "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg";\n\n/' proto/engine_gcmessages.proto
49+
sed -i '1s/^/option go_package = "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg";\n\n/' proto/netmessages.proto
50+
sed -i '1s/^/option go_package = "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg";\n\n/' proto/steammessages.proto
5151
5252
export PATH=/tmp/protoc/bin:$PATH
5353
./generate.sh

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ linters-settings:
6464
disabled-checks:
6565
- ifElseChain
6666
gci:
67-
local-prefixes: github.com/markus-wa/demoinfocs-golang/v2
67+
local-prefixes: github.com/markus-wa/demoinfocs-golang/v3

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A blazing fast, feature complete and production ready Go library for parsing and
44

55
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://vshymanskyy.github.io/StandWithUkraine)
66

7-
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs?tab=doc)
7+
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs?tab=doc)
88
[![Build Status](https://img.shields.io/github/workflow/status/markus-wa/demoinfocs-golang/CI/master?style=flat-square)](https://github.com/markus-wa/demoinfocs-golang/actions)
99
[![codecov](https://img.shields.io/codecov/c/github/markus-wa/demoinfocs-golang?style=flat-square)](https://codecov.io/gh/markus-wa/demoinfocs-golang)
1010
[![Go Report](https://goreportcard.com/badge/github.com/markus-wa/demoinfocs-golang?style=flat-square)](https://goreportcard.com/report/github.com/markus-wa/demoinfocs-golang)
@@ -25,7 +25,7 @@ If you have been enjoying this library and are considering donating, please chec
2525

2626
## Go Get
2727

28-
go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
28+
go get -u github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs
2929

3030
## Table of Contents
3131

@@ -66,7 +66,7 @@ go mod init github.com/<YOUR_GITHUB_USER>/my-project
6666
# the module name (github.com/<YOUR_GITHUB_USER>/my-project) can always be changed later
6767
# you can also put example.com/my-project or anything else if you don't plan to publish your project
6868
69-
go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
69+
go get -u github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs
7070
```
7171

7272
3. Create a `main.go` file with the example below
@@ -88,8 +88,8 @@ import (
8888
"log"
8989
"os"
9090

91-
dem "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs"
92-
events "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events"
91+
dem "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs"
92+
events "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
9393
)
9494

9595
func main() {
@@ -146,24 +146,24 @@ Check out the [examples](examples) folder for more examples, like [how to genera
146146

147147
### Documentation
148148

149-
The full API documentation is available here on [pkg.go.dev](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs).
149+
The full API documentation is available here on [pkg.go.dev](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs).
150150

151151
## Features
152152

153-
* Game events (kills, shots, round starts/ends, footsteps etc.) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events?tab=doc) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/print-events)
154-
* Tracking of game-state (players, teams, grenades, ConVars etc.) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs?tab=doc#GameState)
155-
* Grenade projectiles / trajectories - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs?tab=doc#GameState.GrenadeProjectiles) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/nade-trajectories)
156-
* Access to entities, server-classes & data-tables - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables?tab=doc#ServerClasses) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/entities)
157-
* Access to all net-messages - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs?tab=doc#NetMessageCreator) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/net-messages)
158-
* Chat & console messages <sup id="achat1">1</sup> - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events?tab=doc#ChatMessage) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/print-events)
159-
* Matchmaking ranks (official MM demos only) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events?tab=doc#RankUpdate)
153+
* Game events (kills, shots, round starts/ends, footsteps etc.) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events?tab=doc) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/print-events)
154+
* Tracking of game-state (players, teams, grenades, ConVars etc.) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs?tab=doc#GameState)
155+
* Grenade projectiles / trajectories - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs?tab=doc#GameState.GrenadeProjectiles) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/nade-trajectories)
156+
* Access to entities, server-classes & data-tables - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables?tab=doc#ServerClasses) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/entities)
157+
* Access to all net-messages - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs?tab=doc#NetMessageCreator) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/net-messages)
158+
* Chat & console messages <sup id="achat1">1</sup> - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events?tab=doc#ChatMessage) / [example](https://github.com/markus-wa/demoinfocs-golang/tree/master/examples/print-events)
159+
* Matchmaking ranks (official MM demos only) - [docs](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events?tab=doc#RankUpdate)
160160
* Full POV demo support <sup id="achat1">2</sup>
161-
* Support for encrypted net-messages (if the [decryption key](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2@master/pkg/demoinfocs#ParserConfig) is provided)
161+
* Support for encrypted net-messages (if the [decryption key](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3@master/pkg/demoinfocs#ParserConfig) is provided)
162162
* JavaScript (browser / Node.js) support via WebAssembly - [example](https://github.com/markus-wa/demoinfocs-wasm)
163163
* [Easy debugging via build-flags](#debugging)
164164
* Built with performance & concurrency in mind
165165

166-
1. <small id="f1">In MM demos the chat is encrypted, so [`ParserConfig.NetMessageDecryptionKey`](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2@master/pkg/demoinfocs#ParserConfig) needs to be set - see also [`MatchInfoDecryptionKey()`](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v2@master/pkg/demoinfocs#MatchInfoDecryptionKey).</small>
166+
1. <small id="f1">In MM demos the chat is encrypted, so [`ParserConfig.NetMessageDecryptionKey`](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3@master/pkg/demoinfocs#ParserConfig) needs to be set - see also [`MatchInfoDecryptionKey()`](https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v3@master/pkg/demoinfocs#MatchInfoDecryptionKey).</small>
167167
2. <small id="f2">Better than some other parsers at the time of writing.</small>
168168

169169
## Performance / Benchmarks
@@ -229,7 +229,7 @@ If your project is using this library feel free to submit a PR or send a message
229229
You can use the build tag `debugdemoinfocs` (i.e. `go test -tags debugdemoinfocs -v`) to print out debugging information - such as game events or unhandled demo-messages - during the parsing process.<br>
230230
Side-note: The tag isn't called `debug` to avoid naming conflicts with other libs (and underscores in tags don't work, apparently).
231231

232-
To change the default debugging behavior, Go's `ldflags` parameter can be used. Example for additionally printing out all server-classes with their properties: `-ldflags="-X 'github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs.debugServerClasses=YES'"`
232+
To change the default debugging behavior, Go's `ldflags` parameter can be used. Example for additionally printing out all server-classes with their properties: `-ldflags="-X 'github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs.debugServerClasses=YES'"`
233233

234234
Check out `debug_on.go` for any other settings that can be changed.
235235

examples/encrypted-net-messages/enc_net_msg.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"log"
77
"os"
88

9-
dem "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs"
10-
"github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events"
9+
dem "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs"
10+
"github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
1111
)
1212

1313
func checkErr(err error) {

examples/entities/entities.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
_ "image/jpeg"
66
"os"
77

8-
ex "github.com/markus-wa/demoinfocs-golang/v2/examples"
9-
demoinfocs "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs"
10-
events "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events"
11-
st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
8+
ex "github.com/markus-wa/demoinfocs-golang/v3/examples"
9+
demoinfocs "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs"
10+
events "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
11+
st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
1212
)
1313

1414
// Run like this: go run entities.go -demo /path/to/demo.dem

examples/heatmap/heatmap.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010
heatmap "github.com/markus-wa/go-heatmap/v2"
1111
schemes "github.com/markus-wa/go-heatmap/v2/schemes"
1212

13-
ex "github.com/markus-wa/demoinfocs-golang/v2/examples"
14-
demoinfocs "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs"
15-
events "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events"
16-
"github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/msg"
13+
ex "github.com/markus-wa/demoinfocs-golang/v3/examples"
14+
demoinfocs "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs"
15+
events "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
16+
"github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg"
1717
)
1818

1919
const (

examples/heatmap/heatmap_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/markus-wa/demoinfocs-golang/v2/examples"
7+
"github.com/markus-wa/demoinfocs-golang/v3/examples"
88
)
99

1010
// Just make sure the example runs

examples/map_metadata_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/stretchr/testify/assert"
77

8-
"github.com/markus-wa/demoinfocs-golang/v2/examples"
8+
"github.com/markus-wa/demoinfocs-golang/v3/examples"
99
)
1010

1111
func TestGetMapMetadata(t *testing.T) {

examples/mocking/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ First, let's have a look at the API of our code, the 'system under test':
99

1010
```go
1111
import (
12-
dem "github.com/markus-wa/demoinfocs-golang"
13-
events "github.com/markus-wa/demoinfocs-golang/v2/events"
12+
dem "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs"
13+
events "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
1414
)
1515

1616
func collectKills(parser dem.Parser) (kills []events.Kill, err error) {
@@ -33,9 +33,9 @@ import (
3333

3434
assert "github.com/stretchr/testify/assert"
3535

36-
common "github.com/markus-wa/demoinfocs-golang/v2/common"
37-
events "github.com/markus-wa/demoinfocs-golang/v2/events"
38-
fake "github.com/markus-wa/demoinfocs-golang/v2/fake"
36+
common "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/common"
37+
events "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
38+
fake "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/fake"
3939
)
4040

4141
func TestCollectKills(t *testing.T) {
@@ -83,9 +83,9 @@ import (
8383

8484
assert "github.com/stretchr/testify/assert"
8585

86-
common "github.com/markus-wa/demoinfocs-golang/v2/common"
87-
events "github.com/markus-wa/demoinfocs-golang/v2/events"
88-
fake "github.com/markus-wa/demoinfocs-golang/v2/fake"
86+
common "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/common"
87+
events "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
88+
fake "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/fake"
8989
)
9090

9191
func TestCollectKillsError(t *testing.T) {

examples/mocking/collect_kills.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package mocking
22

33
import (
4-
demoinfocs "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs"
5-
events "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events"
4+
demoinfocs "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs"
5+
events "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
66
)
77

88
func collectKills(parser demoinfocs.Parser) (kills []events.Kill, err error) {

examples/mocking/mocking_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66

77
assert "github.com/stretchr/testify/assert"
88

9-
common "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/common"
10-
events "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events"
11-
fake "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/fake"
9+
common "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/common"
10+
events "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
11+
fake "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/fake"
1212
)
1313

1414
func TestCollectKills(t *testing.T) {

examples/nade-trajectories/nade_trajectories.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
"github.com/golang/geo/r3"
1313
"github.com/llgcode/draw2d/draw2dimg"
1414

15-
ex "github.com/markus-wa/demoinfocs-golang/v2/examples"
16-
demoinfocs "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs"
17-
common "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/common"
18-
events "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events"
19-
"github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/msg"
15+
ex "github.com/markus-wa/demoinfocs-golang/v3/examples"
16+
demoinfocs "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs"
17+
common "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/common"
18+
events "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
19+
"github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg"
2020
)
2121

2222
type nadePath struct {

examples/nade-trajectories/nade_trajectories_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"os"
55
"testing"
66

7-
ex "github.com/markus-wa/demoinfocs-golang/v2/examples"
7+
ex "github.com/markus-wa/demoinfocs-golang/v3/examples"
88
)
99

1010
// Just make sure the example runs

examples/net-messages/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
"google.golang.org/protobuf/proto"
3838

3939
dem "github.com/markus-wa/demoinfocs-golang"
40-
"github.com/markus-wa/demoinfocs-golang/v2/msg"
40+
"github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg"
4141
)
4242

4343
cfg := dem.DefaultParserConfig

examples/net-messages/netmessages.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66

77
"google.golang.org/protobuf/proto"
88

9-
ex "github.com/markus-wa/demoinfocs-golang/v2/examples"
10-
demoinfocs "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs"
11-
msg "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/msg"
9+
ex "github.com/markus-wa/demoinfocs-golang/v3/examples"
10+
demoinfocs "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs"
11+
msg "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/msg"
1212
)
1313

1414
// Run like this: go run netmessages.go -demo /path/to/demo.dem > out.png

examples/print-events/print_events.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"fmt"
55
"os"
66

7-
ex "github.com/markus-wa/demoinfocs-golang/v2/examples"
8-
demoinfocs "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs"
9-
common "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/common"
10-
events "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/events"
7+
ex "github.com/markus-wa/demoinfocs-golang/v3/examples"
8+
demoinfocs "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs"
9+
common "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/common"
10+
events "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/events"
1111
)
1212

1313
// Run like this: go run print_events.go -demo /path/to/demo.dem

pkg/demoinfocs/common/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/golang/geo/r3"
1212

13-
st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
13+
st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
1414
)
1515

1616
// Team is the type for the various TeamXYZ constants.

pkg/demoinfocs/common/common_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"github.com/golang/geo/r3"
88
"github.com/stretchr/testify/assert"
99

10-
st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
11-
stfake "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables/fake"
10+
st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
11+
stfake "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables/fake"
1212
)
1313

1414
func TestBombPosition(t *testing.T) {

pkg/demoinfocs/common/entity_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package common
22

3-
import st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
3+
import st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
44

55
func getInt(entity st.Entity, propName string) int {
66
if entity == nil {

pkg/demoinfocs/common/equipment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"math/rand"
55
"strings"
66

7-
st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
7+
st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
88
)
99

1010
// EquipmentClass is the type for the various EqClassXYZ constants.

pkg/demoinfocs/common/equipment_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/stretchr/testify/assert"
77

8-
st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
8+
st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
99
)
1010

1111
func TestEquipmentElement_Class(t *testing.T) {

pkg/demoinfocs/common/hostage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package common
33
import (
44
"github.com/golang/geo/r3"
55

6-
st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
6+
st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
77
)
88

99
// HostageState is the type for the various HostageStateXYZ constants.

pkg/demoinfocs/common/hostage_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/stretchr/testify/assert"
77

8-
st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
8+
st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
99
)
1010

1111
func TestHostage_Leader(t *testing.T) {

pkg/demoinfocs/common/inferno.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/golang/geo/r3"
1010
"github.com/markus-wa/quickhull-go/v2"
1111

12-
st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
12+
st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
1313
)
1414

1515
// Inferno is a list of Fires with helper functions.

pkg/demoinfocs/common/inferno_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"github.com/golang/geo/r3"
88
"github.com/stretchr/testify/assert"
99

10-
st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
11-
stfake "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables/fake"
10+
st "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables"
11+
stfake "github.com/markus-wa/demoinfocs-golang/v3/pkg/demoinfocs/sendtables/fake"
1212
)
1313

1414
func TestInferno_UniqueID(t *testing.T) {

0 commit comments

Comments
 (0)