Fixes MacOS X build

Build for MacOS was breaking within this function:

```func appDelegate_windowDidResize(self C.id, sel C.SEL, notification C.id)```

This commit has also go fmt changes.
Which version of go fmt do you use ? It looks like there are inconsistencies between the one I use here (go tip) and yours.

Thanks