Prepare Requirement
- golang
- MacOs OR Linux OR Windows
Installation
git clone git@github.com:Sunchiii/go-module-generator.git
cd go-module-generator
MacOs OR Linux
Run this command in your terminal
$ ./install.sh
Windows
To add a directory to your system's PATH:
- Copy this floder to Local Disk (C:)
- Right-click on 'This PC' or 'Computer' on your desktop or in File Explorer.
- Click on 'Properties'.
- Click on 'Advanced system settings'.
- Click on the 'Environment Variables' button.
- In the 'System variables' section, find the Path variable and select it.
- Click 'Edit', then 'New', and add the directory path (C:\go-module-generator).
- Click 'OK' to close all windows.
Usege
use for initial project:
mkdir <yourProjectName>
cd <yourProjectName>
go-gen init
Enter Project Name: <yourProjectName>
go mod tidy
use for generate module
[!IMPORTANT]
In your directory structure must has been "/src/"
go-gen <yourServiceName>