From e86554aad638daa446ff925bb2c0e8cb2b9da94a Mon Sep 17 00:00:00 2001 From: syumai Date: Wed, 11 Oct 2023 23:32:15 +0900 Subject: [PATCH] update README.md to use gonew cmd --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aa4cc7f..005a2c7 100644 --- a/README.md +++ b/README.md @@ -68,13 +68,14 @@ First, please install the following tools: * [wrangler](https://developers.cloudflare.com/workers/wrangler/) - You can install it by running `npm install -g wrangler`. * tinygo +* gonew command + - You can install it by running `go install golang.org/x/tools/cmd/gonew@latest` After installation, please run the following commands. ```console -wrangler generate my-app syumai/workers/_templates/cloudflare/worker-tinygo +gonew github.com/syumai/workers/_templates/cloudflare/worker-tinygo your.module/my-app # e.g. github.com/syumai/my-app cd my-app -go mod init go mod tidy make dev # start running dev server curl http://localhost:8787/hello # outputs "Hello!"