Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix golint complaints, use filepath instead of path, add color to README. #3

Merged
merged 3 commits into from
Nov 22, 2013

Conversation

aybabtme
Copy link
Contributor

Hello!

I've made a few simple changes, mostly replacing usages of path for filepath for filesystem related path manipulation; since path is not portable across OS. Also I've fixed the issues golint was reporting. If you don't use golint, you can find it here:

https://github.com/golang/lint

go get github.com/golang/lint/golint

Finally I've set the example code in the README to use Go syntax highlighting.

Change path to filepath.  `path` is not specific to filesystem paths,
while `filepath` is. Also "./data" can be changed to "data" to make it
portable.
@snormore
Copy link
Contributor

cc @mkobetic

)

// Indirect is a referrer that doesn't match any of the other referrer types.
type Indirect struct {
Url string // original referrer URL
URL string // original referrer URL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We prefer Url notation even for abbreviations :)

@snormore
Copy link
Contributor

@aybabtme hmm ok I see that golint was complaining about the refUrl notation, stick with refURL etc in that case.

@snormore
Copy link
Contributor

Confirmed that tests are 🍏, we can :shipit: when @mkobetic gives the 👍 too.

@aybabtme
Copy link
Contributor Author

@snormore I also prefer Url and Id and the likes, but I've submitted to the will of the GoVet, GoLint and GoFmt gods. =)

@mkobetic
Copy link
Contributor

👍 Thanks!

snormore added a commit that referenced this pull request Nov 22, 2013
Fix `golint` complaints, use `filepath` instead of `path`, add color to README.
@snormore snormore merged commit 7f62061 into Shopify:master Nov 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants