Simple pure GO web app.
This program using SQlite3. If you need more - rewrite SQL or connect something like ORM, for example: gorm. Don't forget to download driver.
Tables are auto-migrating via first run.
Everything is inside one file, maybe later I'll refactor it (not).
For Ubuntu 20.04 LTS Focal Fossa (focal):
sudo snap install go --classicRun code:
go run main.goOr build it:
go build main.goInit go.mod file:
go mod init package_nameInstall sql (SQlite3) and some othe packages:
go mod download github.com/mattn/go-sqlite3
go get github.com/gorilla/mux # for better router