-
Notifications
You must be signed in to change notification settings - Fork 15
Development
Tim Pavlik edited this page Jun 19, 2020
·
4 revisions
Quick Start
- Homebrew
brew install golang # and set up your environment
brew install jq
make test_unit
- Clone this repo into any location, since we're using modules it is recommended this actually be outside of your $GOPATH e.g.
git clone https://github.com/splunk/splunk-cloud-sdk-go.git ~/src/splunk-cloud-sdk-go - Enter the cloned repo with
cd ~/src/splunk-cloud-sdk-goreplacing the path for whatever you cloned to in step 1 - Setup required development using
make setup - Now you should be able to build with
make build - The newly-built scloud binary with any changes you have made should now available in
bin/scloud
- Make sure your code is passing linting using
make lint
- Make sure your code is passing go vet using
make vet
Automatically format your code with gofmt and goimports using make format and commit any formatting changes