• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..01-Nov-2021-

.gitignoreH A D01-Nov-20217 21

MakefileH A D01-Nov-202183 64

README.mdH A D01-Nov-2021853 2617

main.goH A D01-Nov-20213.5 KiB147108

serve.goH A D01-Nov-2021389 2115

README.md

1# Rclone as WASM
2
3This directory contains files to use the rclone rc as a library in the browser.
4
5This works by compiling rclone to WASM and loading that in via javascript.
6
7This contains the following files
8
9- `index.html` - test web page to load the module
10- `loader.js` - java script to load the module - see here for usage
11- `main.go` - main go code exporting the rclone rc
12- `Makefile` - test makefile
13- `README.md` - this readme
14- `serve.go` - test program to serve the web page
15- `wasm_exec.js` - interface code from the go source - don't edit
16
17## Compiling
18
19This can be compiled by using `make` or alternatively `GOARCH=wasm GOOS=js go build -o rclone.wasm`
20
21## Running
22
23Run the test server with `make serve` and examine the page at
24http://localhost:3000/ - look at the javascript console and look at
25the end of `loader.js` for how that works.
26