Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 569 Bytes

README.md

File metadata and controls

43 lines (32 loc) · 569 Bytes

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 ./...