by sagichmal · 12y ago · 0 comments
> What random formatting?
Primarily here I saw a lot of arbitrary indentation. As far as I can tell, everything would be fixed by a gofmt -w...https://github.com/andlabs/ui/blob/master/button.go#L16-19
https://github.com/andlabs/ui/blob/master/area_unix.go#L35-3...
https://github.com/andlabs/ui/blob/master/area_unix.go#L107
https://github.com/andlabs/ui/blob/master/area_unix.go#L200
https://github.com/andlabs/ui/blob/master/area_unix.go#L329-...
https://github.com/andlabs/ui/blob/master/grid.go#L18-26
> What unidiomatic naming conventions?
Primarily here I saw a lot of underscores, which are never used in pure Go. Some of that maybe is due to Cgo conventions, but some of it isn't.L35-37 I'm not sure what problem that has; I just put the very long bitmask on its own line.
The underscores in our_xxx_xxx_xxx I don't think would be much of an issue. They unintentionally match the GTK+ naming conventions. I don't know why I did them, but I don't consider it a world-ending issue worth fixing. Same for _xSysData, but in that case the _ is there in case I accidentally said xSysData somewhere else.