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
Hi @rudolph9, you can use various mechanisms like build tags, runtime.GOOS and possibly other ways.
Unlike other projects, we do not use the issue tracker for questions such as these. It is only used for bugs and feature proposals. I will close this issue, but please feel free to ask it in any of these forums below:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Attempted add the header "js.fetch:mode" so my code will work correctly in a wasm target.
However, now the amd64 target through the error:
net/http: invalid header field name "js.fetch:mode"
What did you expect to see?
it to just ignore the header
What did you see instead?
an error
Other comments
What is the best practice for handling code that is intended to support multiple build targets?
The text was updated successfully, but these errors were encountered: