Skip to content

mkokoulin/url-shorter

Repository files navigation

Postgres

Run server:

pg_ctl -D /opt/homebrew/var/postgres start

Start psql and open database postgres, which is the database postgres uses itself to store roles, permissions, and structure:

psql postgres

Test

Check coverage
go test ./... -v -short -p 1 -cover
go test ./...

Linting

golangci-lint run

Swagger

go install github.com/swaggo/swag/cmd/swag@latest 

swag init -g internal/handlers/handlers.go

Profiling

go test -bench=. -cpuprofile=cpu.out 

Analyzer

staticcheck ./...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages