go get -u -v github.com/golang/lint/golint
The workflow is pretty standard:
ln -s ../../pre-commit .git/hooks/pre-commit
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push -u origin my-new-feature
)The test suite assumes that:
AMQP_URL
is exported to amqp://guest:guest@127.0.0.1:5672/
After starting a local RabbitMQ, run integration tests with the following:
env AMQP_URL=amqp://guest:guest@127.0.0.1:5672/ go test -v -cpu 2 -tags integration -race
All integration tests should use the integrationConnection(...)
test
helpers defined in integration_test.go
to setup the integration environment
and logging.