Skip to content

Commit ff5b554

Browse files
authored
refactor: rework the main loop (#14)
1 parent 1ba442e commit ff5b554

File tree

24 files changed

+2374
-511
lines changed

24 files changed

+2374
-511
lines changed

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ linters:
3232
- nlreturn
3333
- varnamelen
3434
- wsl
35+
- wrapcheck
36+
- inamedparam
3537

3638
issues:
3739
exclude-use-default: false

.goreleaser.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: 2
2-
project_name: fakegs
2+
project_name: fakegameserver
33
dist: dist
44

55
env:
66
- CGO_ENABLED=0
77

88
builds:
9-
- id: fakegs
10-
binary: fakegs
11-
main: ./cmd/fakegs
9+
- id: gameserver
10+
binary: gameserver
11+
main: ./cmd/gameserver
1212
goos:
1313
- linux
1414
goarch:
@@ -19,7 +19,7 @@ changelog:
1919
disable: true
2020

2121
archives:
22-
- id: fakegs
22+
- id: gameserver
2323
formats: ['binary']
2424
allow_different_binary_count: true
2525

@@ -31,7 +31,7 @@ snapshot:
3131

3232
dockerhub:
3333
- images:
34-
- antiphp/fakegs
34+
- antiphp/fakegameserver
3535
full_description:
3636
from_file:
3737
path: ./README.md
@@ -41,9 +41,9 @@ dockers:
4141
goos: linux
4242
goarch: amd64
4343
ids:
44-
- fakegs
44+
- gameserver
4545
image_templates:
46-
- "docker.io/antiphp/fakegs:{{ .Tag }}"
47-
- "docker.io/antiphp/fakegs:latest"
46+
- "docker.io/antiphp/fakegameserver:{{ .Tag }}"
47+
- "docker.io/antiphp/fakegameserver:latest"
4848
build_flag_templates:
4949
- "--platform=linux/amd64"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM gcr.io/distroless/static:nonroot
22

33
WORKDIR /app/
4-
COPY fakegs /app/
4+
COPY gameserver /app/
55

6-
ENTRYPOINT ["/app/fakegs"]
6+
ENTRYPOINT ["/app/gameserver"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Test
22

33
test:
4-
@go test -cover -race ./...
4+
@GOEXPERIMENT=synctest go test -cover -race ./...
55
.PHONY: test
66

77
#Lint

0 commit comments

Comments
 (0)