Skip to content

t-kuni/go-cli-app-template

Repository files navigation

About

Project template for Go CLI application.

Features

  • Onion Architecture
  • Dependency Injection
  • Testable

Usage

  1. fork this repository and clone it.
  2. create .env file
cp .env.example .env
cp .env.test.example .env.test

Build

make build

Run

go run ./main.go command1

Run test

make test

Docker build & run

# Build
docker build -t go-cli-app-template .
# Run
docker run go-cli-app-template command1

Devcontainer Setup

devcontainerを使用して開発環境をセットアップするには、以下の手順を実行してください。

  1. VSCodeで当リポジトリを開きます
  2. コマンドパレット(Ctrl+Shift+P)を開き、Dev-Containers: Reopen in Containerを選択します。

これで、コンテナ内で開発環境がセットアップされます。

TODO

  • xxx

About

project skeleton for Go CLI application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published