koinos / koinos-types

The Rosetta Stone of the Koinos ecosystem. Allows for the interpretation of Koinos data structures in a multitude of languages. Useful in the development of microservices, clients, and smart contracts.
MIT License
12 stars 3 forks source link

Opaque variables in golang runtime should be public (uppercase) #146

Closed theoreticalbts closed 3 years ago

theoreticalbts commented 3 years ago

I had a rather subtle issue trying to use Golang opaque types reflectively, ultimately due to opaque types having private fields.

I created a workaround for my specific issue, but it could be completely solved by simply making the blob and native fields public (uppercase). Perhaps this would be a worthwhile change?