make init
go run .
curl -X POST \
-H 'content-type: application/json' \
-d '{"message": "hello, world!"}'
'http://localhost:8080/hello '
-
コードを再生成する
make generate/openapi
-
Server 実装のコンパイルエラーを解消する
Directory | Detail |
---|---|
configs | 設定ファイル等の配置する |
docs | ドキュメントを配置する |
domain | ドメインコードを定義する |
infrastructure | インフラストラクチャコードを定義する |
presentation | プレゼンテーションコードを定義する |
internal | アプリケーショの共通処理系を定義する |