-
Notifications
You must be signed in to change notification settings - Fork 224
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
No examples of decoding into structures. #276
Comments
From the error, it looks like you're not actually receiving a struct, but a map of variants (which is a way to represent "dictionaries" in D-Bus). Structs are something different in the D-Bus model, namely an ordered sequence of typed, but unnamed values. So Go structs are mapped to this and vice versa. You can still use |
I was expecting some decoding to structs functionality when dealing with dictionaries. am I just missing it?
right now I'm getting errors
dbus.Store: type mismatch: map: cannot store a value of map[string]dbus.Variant into Foo
looking at the code looks like it doesn't handle anything but map, slices, interface{}, and primitives.
The text was updated successfully, but these errors were encountered: