Original post

First off, I’m a complete newbie when it comes to . I’ve got it installed, both on Windows and Linux, and can create a simple Hello World program, which builds and runs fine.

My reason for learning Go, however, is to rewrite a game server I’ve got in PHP-CLI! So I’m looking for sample code to act as a foundation. I’ve found e.g. https://github.com/name5566/leaf (and https://github.com/name5566/leafserver)

I can clone and download the repository, but haven’t a clue as to how to even build it as-is… The few times I’ve got go build or go install to do anything more than an immediate not found type error, it’s referencing github… I’ve tried putting them in various folder structures, “go init mod”, etc, but with no luck.

If I can’t even build the code as-is, I’m not going to get anywhere learning how to write my own stuff on top.

So… Is there a tutorial anywhere on how to actually download and use third-party code? Starting from the very basics, “create this directory structure, run these exact commands.” …

Embarrassed thanks …