-
Notifications
You must be signed in to change notification settings - Fork 6
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
Repo directory structure #6
Comments
not sure about moving the code under |
The standard project layouts for go code is here https://github.com/golang-standards/project-layout |
I could see the following though:
|
Definitely looks better than we have already 👍 - let's try and be as consistent with the community advice as possible. The only other thing is:
With that in mind - what about:
Any code that might be imported and used must live in |
|
This obviously depends on the desired surface area of the API. My thought was that users would just call
Yeah I think so - that's what I included in the above example. |
Interesting, this is not how the package is currently designed generate basically loops over the "files" that have already been added to write them to disk ... it is currently up to the user to call
I think having encodings public and usable will encourage ppl to add and experiment with their own encodings. With regard to gen i think an import path like |
So for me
Exactly. |
I would say the current structure is OK, what exactly we should change? |
BTW there is no rule packages has to be in |
I agree, its a package so would leave it as is. |
What is the desired directory structure of the repo?
Assuming that the aim is to make the project it as easy as possible to understand, and allow people to find the things they want quickly, I propose the following principles:
go.mod
,README.md
) etc.Given these parameters, something like the following would work:
Question - is it ok to use
src
to hold the source code - or does this have a special reserved meaning in Golang that we should not overload?Happy to do the refactor if you guys give me a
hell yeah
The text was updated successfully, but these errors were encountered: