pelletier / go-toml

Go library for the TOML file format
https://github.com/pelletier/go-toml
Other
1.69k stars 206 forks source link

Fix reflect.*Header in TinyGo. #818

Closed eNV25 closed 1 year ago

eNV25 commented 1 year ago

TinyGo uses uintptr for Len and Cap in reflect.*Header, unlike gc which uses int. This commit chooses the correct type using -tags.

For unrelated reasons, compiling with TinyGo does not yet work. But this eliminates one error.

pelletier commented 1 year ago

Thanks for the patch! I'd love for go-toml to support tinygo. I'll try to see if I can set up CI to test against it too.