BTW because of this little project, I got a pretty good exposure to reflect package now. Honestly I was always scared of using it because a lot of methods default to panic and do not return errors but I learned that panics can be avoided easily by just reading the documentation.

Show thread

Implementation in : Figured out a way to implement custom Unmarshaler for dynamic values with user-given datatypes. I'm kinda proud of it 😅.

I implemented the decoding for primitive datatypes, just need to implement structs and arrays now.

For decoding , I want to expose functionality for caller to specify a list of parameter types to parse the values into. But I don't know how to implement it by implementing the Unmarshaller interface alone.

Mastodon

This is a brand new server run by the main developers of the project as a spin-off of mastodon.social 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!