-
Notifications
You must be signed in to change notification settings - Fork 921
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
Support for reflect package in TinyGo #2660
Comments
Only a subset of reflect is implemented. The supported package page is overdue to have a "passes tests" column, see Work is ongoing to improve reflect, see #2640. |
Hey @srikarrao I know that https://github.com/buger/jsonparser is used with tinygo where you need to do JSON serialisation. You can find the entry point here at https://github.com/genjidb/genji.js/blob/master/scripts/buildgo.sh#L27, which compiles the golang code using tinygo to wasm |
I ran into the same issue with Edit: I tried to see if this is something I can implement but it seems much more complicated than expected, especially when referring to to 'full' go reflect package and all the additional functions that it needs to get this method in rtype. |
|
The next release of tinygo will support validating jwt: (I had to disable the http listener example)
|
Thank you so much! When can we expect that release to happen? |
This is part of the |
Is it possible to implement this? Line 1012 in 731532c
Related to cobra library support #2704 (comment) Using Go version 1.21.0 I am able to both compile and run the program that uses cobra CLI library.
With TinyGo I am able to compile but at runtime I get a panic
|
no necromancy, please :-). Filed #3943 for the cobra problem. |
Is the reflect package implemented in the latest version of Tinygo? I'm trying to decode the JSON in Go WASM and I have been getting the below error that
reflect.Type.NumMethod() is unimplemented
. I found a couple of issues reported earlier, I'm not sure if this is implemented. However, the TinyGo's supported libs document says it does allow importingencoding/json
package.Previous Issues:
#907
#575
Versions used:
Error logs:
The text was updated successfully, but these errors were encountered: