Project template for Go CLI application.
- Onion Architecture
- Dependency Injection
- Testable
- fork this repository and clone it.
- create .env file
cp .env.example .env
cp .env.test.example .env.test
make build
go run ./main.go command1
make test
# Build
docker build -t go-cli-app-template .
# Run
docker run go-cli-app-template command1
devcontainer
を使用して開発環境をセットアップするには、以下の手順を実行してください。
- VSCodeで当リポジトリを開きます
- コマンドパレット(
Ctrl+Shift+P
)を開き、Dev-Containers: Reopen in Container
を選択します。
これで、コンテナ内で開発環境がセットアップされます。
- xxx