Source article:

Integrate Go Library into a JavaScript Webpage with WebAssembly