Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Table doesn't fit in WASM JavascriptConsole #188

Open
Milerius opened this issue Jul 23, 2021 · 0 comments
Open

[Bug]: Table doesn't fit in WASM JavascriptConsole #188

Milerius opened this issue Jul 23, 2021 · 0 comments

Comments

@Milerius
Copy link

Milerius commented Jul 23, 2021

image

This is because GOARCH is not detected, in web browser console the URL's link are always wrapped in console

One things you can do is:

Check if the current field is an url: https://golangcode.com/how-to-check-if-a-string-is-a-url/ and if GOARCH == "wasm"

In this case you can reduce the size based on the initial string size (formula is last part of the url + 7chars + "...")

to test:

GOOS=js GOARCH=wasm go build -o your_package_that_contains_main.wasm

with a table inside and try to show an url

https://github.com/golang/go/wiki/WebAssembly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant