- Repository to save my Go programming language studies notes and references.
- Playground: https://go.dev/play/
- Tour: https://go.dev/tour/
- MailHog: https://github.com/mailhog/MailHog
- https://gobyexample.com/
- https://go-proverbs.github.io/
- https://www.asemanago.dev/
- https://golangweekly.com/
- HTTP
- Gin: https://gin-gonic.com/
- Fiber: https://docs.gofiber.io/
- Iris: https://www.iris-go.com/
- ORM
- GoRM: https://gorm.io/
- Dotenv
- Live Reloading
- Admin Dashboard
- GoAdmin: https://www.go-admin.com/
- Tests
- Utility
- Databases
- Golang-Migrate: https://github.com/golang-migrate/migrate
- YouTube
- Aprenda Go PT-BR: https://www.youtube.com/playlist?list=PLCKpcjBB_VlBsxJ9IseNxFllf-UFEXOdg
- Udemy
- Learn How To Code: Google's Go (golang) Programming Language: https://www.udemy.com/course/learn-how-to-code
- Frequently Asked Questions (FAQ): https://go.dev/doc/faq
- Why did you create a new language? https://go.dev/doc/faq#creating_a_new_language
- https://github.com/vkorbes/aprendago
- https://github.com/geiltonxavier/aprenda-go
- https://github.com/mmcgrana/gobyexample
- https://github.com/adonovan/gopl.io
- https://github.com/golang-standards/project-layout
- Initialize a new module
go mod init <module-name>- Add dependencies
go get <package>- Update dependencies
go get -u <package>- Update dependencies and show details
go get -u -v <package>- Organize the go.mod file
go mod tidy- Check module consistency
go mod verify- Show module dependencies
go list -m all- Compile code
go build- Compile for a specific file
go build -o <filename>- Run code
go run <file>.go- Install executable
go install- Run tests
go test- Run tests with details
go test -v- Run tests on all packages
go test ./...- Show documentation for a package
go doc <package>- Show documentation and examples for a package
go doc -all <package>- Format code
go fmt <file>.go- Format all project files
go fmt ./...- Check code style
go vet- Download dependencies
go mod download- Check dependency versions
go list -m -u all- Compile for multiple platforms
GOOS=<operating-system> GOARCH=<architecture> go build -o <filename>Example for compiling for 64-bit Linux:
GOOS=linux GOARCH=amd64 go build -o meu_programa_linux- Install a specific tool
go install <package>Example for installing golint:
go install golang.org/x/lint/golint@latest- Check for outdated packages
go list -u -m all- Run the debugger
Note: dlv is part of the Delve package for debugging.
dlv debug