Closed omac777 closed 10 years ago
Having a field per type seems a bit over the top for the example, and the Go code is also not following the traditional Go style for code formatting, which we should not encourage.
For the particular point being made, we already have two fields from Go types, and both of them show up lower cased in the QML file. It'd also be fine to add a terse comment there to make the point more clear, if you wish.
Add in some other fields into the GoType struct in order to clarify the field names start with an uppercase letter within the GoType in the .go file and that the field names start with a lowercase letter when used within the .qml file.