Encoding does not marshal the fields as expected
Author: LaubiCreated Oct 30, 2023Updated Oct 30, 2023
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
{myName:something}instead of
{Name:something}Source: mitchellh/mapstructure