Skip to content

Go struct to dbus struct - does ordering matter? #234

@js-sketch

Description

@js-sketch

As an example:

Given dbus type (si), does the corresponding Go struct have to be:

struct {
   A string
   B int64
}

Or would

struct {
   B int64
   A string
}

also be feasible?

I assume the latter is not feasible, as it'd lead to ambiguity. If my assumption is correct, then could it be mentioned in the Conversion rules of the docs that the ordering of the struct members in Go matter?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions