From 3bff27df38d84e406696645d369d77e8164ae2ad Mon Sep 17 00:00:00 2001 From: syumai Date: Sat, 24 Jun 2023 10:19:35 +0900 Subject: [PATCH] fix /examples paths to /_examples --- _examples/service-bindings/README.md | 4 ++-- cloudflare/r2bucket.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_examples/service-bindings/README.md b/_examples/service-bindings/README.md index 7e0c524..a905a0c 100644 --- a/_examples/service-bindings/README.md +++ b/_examples/service-bindings/README.md @@ -1,7 +1,7 @@ # service-bindings - Service bindings are an API that facilitate Worker-to-Worker communication via explicit bindings defined in your configuration. -- In this example, invoke [hello](https://github.com/syumai/workers/tree/main/examples/hello) using Service bindings. +- In this example, invoke [hello](https://github.com/syumai/workers/tree/main/_examples/hello) using Service bindings. ## Development @@ -14,7 +14,7 @@ This project requires these tools to be installed globally. ### Deploy Steps -1. Deploy [hello](https://github.com/syumai/workers/tree/main/examples/hello) first. +1. Deploy [hello](https://github.com/syumai/workers/tree/main/_examples/hello) first. 2. Define service bindings in `wrangler.toml`. ```toml services = [ diff --git a/cloudflare/r2bucket.go b/cloudflare/r2bucket.go index e1d1add..e581734 100644 --- a/cloudflare/r2bucket.go +++ b/cloudflare/r2bucket.go @@ -19,7 +19,7 @@ type R2Bucket struct { // NewR2Bucket returns R2Bucket for given variable name. // - variable name must be defined in wrangler.toml. -// - see example: https://github.com/syumai/workers/tree/main/examples/r2-image-viewer +// - see example: https://github.com/syumai/workers/tree/main/_examples/r2-image-viewer // - if the given variable name doesn't exist on runtime context, returns error. // - This function panics when a runtime context is not found. func NewR2Bucket(ctx context.Context, varName string) (*R2Bucket, error) {