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 buildgo run ./main.go command1make test# Build
docker build -t go-cli-app-template .
# Run
docker run go-cli-app-template command1devcontainerを使用して開発環境をセットアップするには、以下の手順を実行してください。
- VSCodeで当リポジトリを開きます
- コマンドパレット(
Ctrl+Shift+P)を開き、Dev-Containers: Reopen in Containerを選択します。
これで、コンテナ内で開発環境がセットアップされます。
- xxx