modulepackage
0.0.0-20250201194253-1f01f6c979db
Repository: https://github.com/blacksmith-vish/sso.git
Documentation: pkg.go.dev
# README
SSO service repo
Docs
Environment
Create .env
file in root dir of the project or assign in your OS env. Lookup example.
Tools
- Taskfile
- Linter:
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
- Swagger:
go install github.com/swaggo/swag/cmd/swag@latest
Tabnine
- generate swagger comment for the
register
function including tags from github.com/swaggo/swag library.
Services
Benchmarking
# benchmark running into file
go test -bench . -benchmem ./internal/lib/collections -cpuprofile=profile.out
# benchmark pdf version
go tool pprof --pdf profile.out > pprof.pdf
go test -bench . -benchmem ./internal/lib/collections -cpuprofile=./profiles/cpu.out -memprofile=./profiles/mem.out