mirror of
https://github.com/syumai/workers.git
synced 2025-03-11 09:49:12 +00:00
26 lines
458 B
Markdown
26 lines
458 B
Markdown
![]() |
# r2-image-viewer-tinygo
|
||
|
|
||
|
* An example server which returns image from Cloudflare R2.
|
||
|
* This server is implemented in Go and compiled with tinygo.
|
||
|
|
||
|
## Example
|
||
|
|
||
|
* https://r2-image-viewer-tinygo.syumai.workers.dev/syumai.png
|
||
|
|
||
|
## Development
|
||
|
|
||
|
### Requirements
|
||
|
|
||
|
This project requires these tools to be installed globally.
|
||
|
|
||
|
* wrangler
|
||
|
* tinygo
|
||
|
|
||
|
### Commands
|
||
|
|
||
|
```
|
||
|
make dev # run dev server
|
||
|
make build # build Go Wasm binary
|
||
|
make publish # publish worker
|
||
|
```
|