Go Project Organizations and other temporary tries
Find a file
2023-07-24 14:22:58 +03:00
simple-structure refactor 2023-07-24 13:52:19 +03:00
.gitignore add module structure example 2023-07-24 11:49:52 +03:00
LICENSE Initial commit 2023-07-19 15:03:27 +03:00
README.md refactor: update readme 2023-07-24 14:22:58 +03:00

go-organization

Understand project structure of GO. Go Modules, GOPATH, efficent development environment... This repo contains lots of trash folder/file! Just trying to understand structure with trying lots of unnecessary things too

Base Resources

Resource Explanation Situation
https://github.com/golang/go/wiki/Modules Up-to-date Explanation/Example of go Modules 📚
https://go.dev/blog/using-go-modules Working with modules, versions and dependencies ✔️
https://github.com/golang-standards/project-layout Unoffical but ready-to-use go project structure
https://go.dev/doc/code General overview for writing code in go ✔️
https://tutorialedge.net/golang/go-project-structure-best-practices/ a blog about go structure ✔️
https://www.digitalocean.com/community/tutorials/how-to-use-go-modules Modules - How to use them module-str ✔️
https://www.digitalocean.com/community/tutorials/how-to-write-packages-in-go Packages - How to use them package-str ✔️
https://go.dev/ref/mod Modules Reference 📚
emoji Very useful, use actively
📚 Up to date and very detailed explanations
✔️ Done, has been read
Use actively, ready-to-use

FAQ

Is there any venv equal for Go language or any virtual environment tool?


  • No, previously GOPATH was used but now Go Modules are using instead of that. Thanks to Go Modules, go.mod file handles all versions/modules/packages and there is no need for a virtual environment. But if you have to use a virtual environment because of another reason just have a look at this repo