Skip to content

what's the data type corresponding to byte array ([]byte) in javascript #667

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

Closed
fearblackcat opened this issue Jul 28, 2017 · 3 comments
Closed

Comments

@fearblackcat
Copy link

fearblackcat commented Jul 28, 2017

question is same to title. Is it array? I mean in front side web browser.

@flimzy
Copy link
Member

flimzy commented Jul 28, 2017

The gopherjs/js docs provide a handy table, which shows that []int8 (for which []byte is an alias), converts to a Int8Array in JavaScript.

@fearblackcat
Copy link
Author

@flimzy thx.

@myitcv
Copy link
Member

myitcv commented Jul 28, 2017

Just to flag up #617 (comment) in this context; that issue (and corresponding PR to follow) will ensure that values pass to/from Go/Javascript worlds are as "expected" (the issue looks to refine what we mean by "expected").

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

3 participants