Patrick
Patrick provides its own program that will create your application.
Installation
go install github.com/blackhorseya/patrick/cmd/patrick@latest
Usage
First, you can show help the following command.
patrick -h
patrick init
The patrick init [app name]
command will create your initial application code for you.
Initializing a module
If you already have a module, skip this step
If you want to initialize a new Go module:
- Create new directory
cd
into that directory
- run
go mod init <MOD_NAME>
e.g.
cd $HOME/project
mkdir myapp
cd myapp
go mod init github.com/blackhorseya/myapp