Skip to content

Commit 83fe796

Browse files
authored
Merge pull request #311 from godbus/doc/struct_type
doc: clarify struct order and link to spec for types
2 parents 32cb891 + 8c01c23 commit 83fe796

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ value.
1010
Conversion Rules
1111
1212
For outgoing messages, Go types are automatically converted to the
13-
corresponding D-Bus types. The following types are directly encoded as their
14-
respective D-Bus equivalents:
13+
corresponding D-Bus types. See the official specification at
14+
https://dbus.freedesktop.org/doc/dbus-specification.html#type-system for more
15+
information on the D-Bus type system. The following types are directly encoded
16+
as their respective D-Bus equivalents:
1517
1618
Go type | D-Bus type
1719
------------+-----------
@@ -39,8 +41,8 @@ Maps encode as DICTs, provided that their key type can be used as a key for
3941
a DICT.
4042
4143
Structs other than Variant and Signature encode as a STRUCT containing their
42-
exported fields. Fields whose tags contain `dbus:"-"` and unexported fields will
43-
be skipped.
44+
exported fields in order. Fields whose tags contain `dbus:"-"` and unexported
45+
fields will be skipped.
4446
4547
Pointers encode as the value they're pointed to.
4648

0 commit comments

Comments
 (0)