Skip to content

Conversation

x1unix
Copy link
Owner

@x1unix x1unix commented Jul 16, 2024

This PR adds automatic WASM build tags detection.

If playground using server environment, but program has //go:build constraint - playground will run program in browser.

This is implemented to provide convenient way to run benchmarks as they're not supported on original Go Playground.

Supported build tags:

//go:build js
//go:build wasm
//go:build js && wasm

image

@x1unix x1unix added this to the 2.0.0 milestone Jul 16, 2024
@x1unix x1unix merged commit 6ff214e into master Jul 16, 2024
@x1unix x1unix deleted the fix/playground-workarounds branch July 16, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

1 participant