app v6.2.0 Release Notes
Release Date: 2020-03-19 // about 4 years ago-
Hello there, this is Maxence.
๐ I'm glad to release the v6.2.0 of the go-app package.
Customizable root directory
๐ Previously, the
app.wasm
file and theweb
directory had to be located in the same directory as the server binary in order to be served.This version allows changing this behavior by introducing the root directory.
๐ The root directory is where
app.wasm
and theweb
directory are located:CUSTOM\_LOCATION โโโ app.wasm โโโ web โโโ Static resources...
0๏ธโฃ By default located in the same directory as the server binary, it can be changed to:
- Another local location.
๐ A cloud storage bucket such as Amazon S3 or Google Cloud Storage, which is very useful in a scenario where a PWA is deployed on a cloud function to reduce function counter.
h := app.Handler{ RootDir: "CUSTOM_LOCATION", }
syscall/js wrapper
โ Wrappers for CopyBytesToGo and CopyBytesToJS have been added.
Misc
๐จ Some refactoring to improve overall code quality.
Thanks
๐ Thanks to @sg0hsmt, @gabstv, and @ruanwenfeng for their contributions to this release.