This is funny because I am doing this without enough preparation and clear scopes
So, here are the feature scopes that I have re-thinking.
[ ] init will generate main.go go.mod and blank folders
[ ] init require project name like init example-project if not set will use current directory instead
[ ] If using current directory better ask for confirmation because it will replace existing file
[ ] Default router are using gin already setup a /api/ping endpoint to serve
Breaking changes
I come up to simpler solution to just generate REST API with repository pattern, goartisan.toml configuration, and users defined template that can be re-used in another project.
This is funny because I am doing this without enough preparation and clear scopes
So, here are the feature scopes that I have re-thinking.
init
will generate main.go go.mod and blank foldersinit
require project name likeinit example-project
if not set will use current directory insteadgin
already setup a/api/ping
endpoint to serveBreaking changes
I come up to simpler solution to just generate REST API with repository pattern,
goartisan.toml
configuration, and users defined template that can be re-used in another project.