If new to Golang, follow tutorial to setup and run GO provided on main doc page. It's documentation is fine
Once installed, add export PATH=$PATH:/usr/local/go/bin in the end of ~/.profile and reboot.
For a new project
mkdir projectName
cd projectName
go mod init projectNamesudo apt install sqlite3Create database
sqlite3 blogtest.db < db_entrypoint.sqlInstall MySQL on system (Docker works fine too)
sudo apt install mysql-server -y
sudo systemctl enable mysql.servicemysql -u root -p < db_entrypoint.sqlGenerate sign key for jwt
openssl rand -hex 32To use dependencies, as for example google uuid must update go.mod by using following command
go get -u github.com/google/uuid
go get -u github.com/joho/godotenv
go get -u golang.org/x/crypto
go get -u github.com/go-sql-driver/mysql
go get -u github.com/golang-jwt/jwt/v5