gogs is an simple, fast and lightweight game server framewrok written in golang. It is designed to be easy to use and easy to extend. It will generate logic code from protobuf files, and you can use it to develop your game server. It is also a good choice for you to learn golang. It support websocket and webrtc datachannel.
- Support metrics
- Support generate Unity C# SDK
- Support generate JS SDK
- Support Remote call
- Support tracing
- Support gogs generate docker file
- Support gogs generate k8s yaml
- Add more examples
- Add more tests
- Add more documentation
- Test coverage reaches 80%
install the gogs
go install github.com/metagogs/gogs/tools/[email protected]
init project
mkdir yourgame
cd yourgame
gogs init -p yourgame
edit your proto, add the game message, then generate the code
gogs go -f data.proto
run your game server
go mod tidy
go run main.go
internal/
logic/
baseworld/
bind_user_logic.go
server/
server.go
svc/
service_context.go
model/
data.ep.go
data.pb.go
config.yaml
data.proto
main.go
make test
This command will run both unit and e2e tests.