js

command
v1.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 12 Imported by: 0

README

Rclone as WASM

This directory contains files to use the rclone rc as a library in the browser.

This works by compiling rclone to WASM and loading that in via javascript.

This contains the following files

  • index.html - test web page to load the module
  • loader.js - java script to load the module - see here for usage
  • main.go - main go code exporting the rclone rc
  • Makefile - test makefile
  • README.md - this readme
  • serve.go - test program to serve the web page
  • wasm_exec.js - interface code from the go source - don't edit

Compiling

This can be compiled by using make or alternatively GOARCH=wasm GOOS=js go build -o rclone.wasm

Running

Run the test server with make serve and examine the page at http://localhost:3000/ - look at the javascript console and look at the end of loader.js for how that works.

Documentation

Rendered for js/wasm
The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL