-
-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support map keys that implement TextMarshaler and TextUnmarshaler #181
Comments
I don't think I would expect this to work, since TOML doesn't have a way of expressing int keys. The error message is not great, though. |
@cespare I have a similar issue with a Could this possibly be supported? The configuration would only support the string values, obviously, per the TOML spec. |
Only Supporting map keys which support |
I'm closing this for now as it's not super-clear to me what the practical real-world use case for this is, it's some amount of work to implement, and it doesn't seem to come up that often. If you still want this, then please let me know the use case, so we can see what the best solution is (which may be using TextMarshaler or something else). |
config like top, when decode will have a error "work faild reflect: call of reflect.Value.SetString on int Value"
if change Cols define to "map[string]Column" it works
The text was updated successfully, but these errors were encountered: