Skip to content

Commit

Permalink
Merge pull request #311 from godbus/doc/struct_type
Browse files Browse the repository at this point in the history
doc: clarify struct order and link to spec for types
guelfey authored Feb 13, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 32cb891 + 8c01c23 commit 83fe796
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc.go
Original file line number Diff line number Diff line change
@@ -10,8 +10,10 @@ value.
Conversion Rules
For outgoing messages, Go types are automatically converted to the
corresponding D-Bus types. The following types are directly encoded as their
respective D-Bus equivalents:
corresponding D-Bus types. See the official specification at
https://dbus.freedesktop.org/doc/dbus-specification.html#type-system for more
information on the D-Bus type system. The following types are directly encoded
as their respective D-Bus equivalents:
Go type | D-Bus type
------------+-----------
@@ -39,8 +41,8 @@ Maps encode as DICTs, provided that their key type can be used as a key for
a DICT.
Structs other than Variant and Signature encode as a STRUCT containing their
exported fields. Fields whose tags contain `dbus:"-"` and unexported fields will
be skipped.
exported fields in order. Fields whose tags contain `dbus:"-"` and unexported
fields will be skipped.
Pointers encode as the value they're pointed to.

0 comments on commit 83fe796

Please sign in to comment.