You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The objective of the GOBL WASM library is to provide a very simple wrapper around a CLI-like interface to the base GOBL library. It should be possible to "Envelop" and/or "Complete" raw JSON documents to create complete GOBL "draft" envelopes as a first step.
We can deal with Digital Signatures a bit later, although they should be relatively easy to manipulate.
The text was updated successfully, but these errors were encountered:
There is no clean way to do this with modern Go/WASM. You can see the full discussion here: golang/go#25612
But the current state of affairs is basically that the Go/WASM program has to set functions in the global JS object (aka window). There's no way to "export" functions in a way that can be imported using standard JS semantics.
An alternative might be TinyGo (referenced in the above issue), as it does provide this sort of exportability for the WASM target. TinyGo has a number of limitations, similar to GopherJS, but I haven't tried using it yet, so maybe it wouldn't be a problem for us.
The objective of the GOBL WASM library is to provide a very simple wrapper around a CLI-like interface to the base GOBL library. It should be possible to "Envelop" and/or "Complete" raw JSON documents to create complete GOBL "draft" envelopes as a first step.
We can deal with Digital Signatures a bit later, although they should be relatively easy to manipulate.
The text was updated successfully, but these errors were encountered: