Skip to content

bluetel/go-sf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-sf

CircleCI

[WIP] Golang library for Salesforce


Enable git hooks when contributing

Git hooks will stop you from committing if there are issues highlighted by golint and go vet. There are two methods to setting up the githooks, one is using a symlink for older git versions, the other is setting the hooks folder in the local git configuration.

Pre-requisites

Install the go vet and golint packages if you don't already have them installed. govet is a standard Go package that should come with your Go installation. golint however has to be isntalled seperately.

go get -u golang.org/x/lint/golint

Setting up the hooks

(Skip for windows users) Set the permissions on our version controlled githooks.

chmod -R +x .githooks/*

If you are running git 2.9 or higher, do the following;

Run the following command in the root directory of the project.

git config --local core.hooksPath .githooks/

If you are on an older version of git, run the following to clear out existing symlinks and create new ones;

find .git/hooks -type l -exec rm {} \; && find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \;

About

[WIP] Golang library for Salesforce

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published