- https://github.com/golang-migrate/migrate
- https://github.com/golang-migrate/migrate/blob/master/GETTING_STARTED.md
- Installation: https://github.com/golang-migrate/migrate/tree/master/cmd/migrate
- mockery --name={InterfaceName} --output={path}. Example: mockery --name=AuthUsecase --output=/cmd/auth/mocks
go test -v ./test/functional/... go test -v ./cmd/auth/authhandler With coverage: unit: go test -coverprofile=coverage.out ./cmd/auth/authhandler go tool cover -html=coverage.out -o coverage.html
functional: go test ./test/functional/... -coverprofile=./coverage.out -coverpkg=./... go tool cover -html=coverage.out -o coverage.html
curl -L https://github.com/golang-migrate/migrate/releases/download/v4.15.2/migrate.darwin-amd64.tar.gz | tar xvz ./migrate create -ext sql -dir migration {file_name}
./migrate -path {FILE_PATH} -database "{DATABASE_URL" up ./migrate -path {FILE_PATH} -database "{DATABASE_URL" down
- unit test
- functional test
- 2FA Google
- OAuth Google Sign In
- OAuth Facebook Sign In
- OAuth Twitter Sign In
https://dasarpemrogramangolang.novalagung.com/C-project-layout-structure.html