feat: Add base templates for Go application structure#1
Merged
Conversation
Owner
illud
commented
Jul 12, 2025
- Created .env.tmpl for environment variable configuration.
- Added .gitignore.tmpl to exclude unnecessary files from version control.
- Introduced README.tmpl with project description and usage instructions.
- Implemented bcrypt.go.tmpl for password hashing and verification.
- Developed db.go.tmpl for database connection using GORM.
- Added env.go.tmpl for loading environment variables.
- Created errors.go.tmpl for standardized error handling.
- Implemented getTasks_test.go.tmpl for testing task retrieval.
- Developed jwt.go.tmpl for JWT token generation and validation.
- Created main.go.tmpl as the entry point for the application.
- Added router.go.tmpl for setting up HTTP routes.
- Implemented tasks.controller.go.tmpl for task-related HTTP handlers.
- Developed tasks.db.go.tmpl for task database operations.
- Created tasks.model.go.tmpl for task data structure definition.
- Added tasks.repository.go.tmpl for task repository interface.
- Implemented tasks.service.go.tmpl for task business logic.
- Created tracker.json.tmpl for module tracking configuration.
- Developed gorm.tmpl for GORM database connection setup.
- Added mysql.tmpl for MySQL database connection setup.
- Created endpoint templates for post operations including controller, infrastructure, repository, and service.
- Developed module templates for creating a modular application structure.
- Created .env.tmpl for environment variable configuration. - Added .gitignore.tmpl to exclude unnecessary files from version control. - Introduced README.tmpl with project description and usage instructions. - Implemented bcrypt.go.tmpl for password hashing and verification. - Developed db.go.tmpl for database connection using GORM. - Added env.go.tmpl for loading environment variables. - Created errors.go.tmpl for standardized error handling. - Implemented getTasks_test.go.tmpl for testing task retrieval. - Developed jwt.go.tmpl for JWT token generation and validation. - Created main.go.tmpl as the entry point for the application. - Added router.go.tmpl for setting up HTTP routes. - Implemented tasks.controller.go.tmpl for task-related HTTP handlers. - Developed tasks.db.go.tmpl for task database operations. - Created tasks.model.go.tmpl for task data structure definition. - Added tasks.repository.go.tmpl for task repository interface. - Implemented tasks.service.go.tmpl for task business logic. - Created tracker.json.tmpl for module tracking configuration. - Developed gorm.tmpl for GORM database connection setup. - Added mysql.tmpl for MySQL database connection setup. - Created endpoint templates for post operations including controller, infrastructure, repository, and service. - Developed module templates for creating a modular application structure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.