tobyhede / go-underscore

Helpfully Functional Go - A useful collection of Go utilities. Designed for programmer happiness.
Other
1.3k stars 61 forks source link

Make package "go get" compatible #5

Open ChimeraCoder opened 10 years ago

ChimeraCoder commented 10 years ago

There are two things which prevent this package from being go get compatible and idiomatic. The first can be fixed with a pull request, but the second requires changing the repository name/location.

Go projects use a single directory for all files in a package, and this directory generally has the same name as the package name (so src directories aren't used in Go projects).

However, project names that end in .go are no longer recognized by the entire Go toolchain, which means that the project name should really be underscore (or perhaps __, not `underscore.go).

(I was going to submit a pull request, but then I realized that the respository name ended in .go, which ideally should be fixed before moving the files out of the src directory; doing this in the other order would result in an inconsistent intermediate state.)

tobyhede commented 10 years ago

Thanks for the feedback. I think have this one sorted now - repo name has changed, src is being moved out of the sub directory.

I am also not using the _ anymore because the general feedback was it was too close to .

tobyhede commented 10 years ago

Thanks for your help too.