go-qml / qml

QML support for the Go language
Other
1.96k stars 189 forks source link

Update customtype.go #53

Closed omac777 closed 10 years ago

omac777 commented 10 years ago

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.

niemeyer commented 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.