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
Project layout and tests #22
Comments
@championswimmer mentioned in their tweet that this project is designed slightly different from the traditional Go project. Its following more of a Node.js project style |
+1 @FaizBShah. Russ Cox (one of the creators of Go) has spoken out against the golang-standards/project-layout repository. This is the only official recommendation https://go.dev/doc/modules/layout |
@thecaffeinedev Thanks for pointing out. We can follow the example directory structure that is under |
We can move unit tests into the src folder, I am ok with that I'll also add a VSCode and IntelliJ rule that collapses tests inside the file (on project browser) so that it doesn't pollute the view so much) Thanks @harshabangi @FaizBShah @thecaffeinedev for inputs |
Here's what I have done to hide the test files in the explorer view. |
The project layout does not adhere to the standard Go practice. For the Go project layout, please refer to the following link: https://github.com/golang-standards/project-layout#go-directories. In Go projects, you will typically find test files (unit tests) in the same directory as the code files. To align with the standard layout, move the test files in the 'tests' folder within their respective directories. Integration tests should be placed in the 'tests' folder.
The text was updated successfully, but these errors were encountered: