docs

Go

Go is used for server applications.

Installation

Install Go.

Usage

Initialization

mkdir <name>
cd <name>
go mod init github.com/<username>/<name>
docker init

Dependencies

go get -u <dep1> <dep2>
go get -tool <dep3> # dev dependencies
go get -tool <dep4>

Dependencies

Edit

Run

VS Code Debugger, or:

go run ./main.go

Docker

docker-compose up

End

docker-compose down

Build

go build

Docs

go tool doc2go -out ./docs/ ./...

Directory

lib

exe

Overall

Upgrading

After upgrading, run:

 go clean -cache -testcache -modcache -fuzzcache