You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
Arguably, it would be better if there were two separate functions, Decode[T any](map[string]any, *T) and Encode[T any](*T, map[string]any) so that getting this wrong would be a compile-time error, but that wouldn't be backwards-compatible.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
According to this comment, encoding should be the arguments reversed. However, the mapstructure annotations are lost and it's not correctly encoded.
Example: https://go.dev/play/p/m1pPpDYYMED
The expected output should have been
instead of
The text was updated successfully, but these errors were encountered: