xiaonanln / goworld

Scalable Distributed Game Server Engine with Hot Swapping in Golang
Apache License 2.0
2.56k stars 458 forks source link

Project directory structure #65

Closed KonstantinKuklin closed 6 years ago

KonstantinKuklin commented 6 years ago

As I understand you project correctly - it is a framework. So you don't need to have the framework inside your own project, but here I found limitation: project source code should be inside the framework dir. Example: I created my project in ~/test/ I installed goworld framework, installed all deps. goworld with all deps stored in GOPATH, which is different as my project dir. So when I want to build my test project I expect behavior like: goworld build ./test But got:

Also to cheating that behavior I add symlink inside $GOPATH/src/github.com/xiaonanln/goworld/test to my $HOME/test dir. Building\Starting processes fine, but on stopping - goworld can't find game instance and doesn't stop it and doesn't throw any error.

xiaonanln commented 6 years ago
KonstantinKuklin commented 6 years ago

yeah, it is. But my project code may be anyware. But goworld expects to see my code inside $GOPATH/src/github.com/xiaonanln/goworld/ as well - this is a problem from my point of view

xiaonanln commented 6 years ago

you can still get goworld running without using cmd/goworld. just go build your ~/test and also run dispatcher, gate manually

KonstantinKuklin commented 6 years ago

thx! exactly what is needed