This tool provides a variety of predefined project structures that you can choose from, allowing you to focus on what matters most - your code.
-
Clone the Repository:
git clone https://github.com/mvstermind/headstart-go.git cd headstart-go
-
Build and Install:
go build go list -f '{{.Target}}' export PATH=$PATH:/path/to/directory/you/copied go install
-
Initialize Your Project:
headstartgo projectname
Replace
projectname
with the desired name for the root of your project. Note that spaces are not allowed in the project name. -
Choose Your Template: Select one of the provided templates based on your project's requirements.
-
Have Fun Coding!
- Suitable for small projects but may become harder to maintain in larger ones.
- Organizes components into layers for better separation of concerns.
- Ideal for large projects, organizes code around business domains.
- Emphasizes a clear separation of concerns, promoting maintainability.
- Helpful for projects with multiple independent components.
Choose the structure that best fits your project's needs and start coding without worrying about organizing your files!
If you have suggestions for additional project structures or improvements to the tool, feel free to open an issue or submit a pull request. Your contributions are valuable!
This project is licensed under the MIT License, allowing you to modify and distribute the code freely, with proper attribution.