From f700e779f6c40fa7798022234eac3db15183d390 Mon Sep 17 00:00:00 2001 From: ikawaha Date: Sat, 14 Oct 2023 10:46:03 +0900 Subject: [PATCH] Add information about cloning templates using command --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 6fc6e2ef7..a78a7d807 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,14 @@ This repository contains examples of microservices implemented using the directory name. The [cellar](https://github.com/goadesign/examples/tree/master/cellar) example provides a complete implementation of a simple microservice. +The samples in each directory serve as templates, and you can clone them using the `gonew` command, as explained in [this blog post](https://go.dev/blog/gonew). + +```shell +$ go install golang.org/x/tools/cmd/gonew@latest +$ gonew github.com/ikawaha/examples/basic@latest github.com//basic +$ cd basic +``` + A [fully instrumented example](https://github.com/goadesign/clue/tree/main/example/weather) of a system consisting of multiple Goa microservices is included in the [Clue](https://github.com/goadesign/clue) repo.