A application to share texts and snippets.
- Start the DB container executing
docke-compose up -d
; - Create the database executing the script in
db/create-db.sql
; - Create the application user executing the script in
db/create-user.sql
(user: web | password: password); - Populate the db executing the script in
db/seed.sql
See all application configurations: go run ./cmd/web -help
- Starting DB:
docker-compose up -d
; - Fetch dependencies:
go mod download
- Starting the web server:
go run ./cmd/web
- Download dependencies:
go mod download
- Remove all unused packages in go.mod and go.sum:
go mod tidy
- Verify is downloaded packages wasn't modified unexpectedly:
go mod verify
- Adding dependency with the latest release for the major version v1:
go get github.com/foo/bar@v1
- Adding dependency with the specific version:
go get github.com/foo/bar@v1.2.3
- Upgrading to the latest minor or patch release:
go get -u github.com/foo/bar
- Upgrading to specific version:
go get -u github.com/foo/bar@v2.0.0