vova616/screenshot

OSX

lesterpang opened this issue · 3 comments

github.com/vova616/screenshot/screenshot_darwin.go:49: cannot use rawData (type C.CFDataRef) as type C.CFTypeRef in argument to func literal

@lesterpang Please add compilable code to reproduce the issue and any system/compiler/tool versions you find relevant.

+1
go version go1.8 darwin/amd64

same error doing 'go get github.com/vova616/screenshot' and 'xgo github.com/vova616/screenshot'

xgo must have a stricter linter/compiler config to catch this one, standard go build/install works just fine. It shouldn't have been an issue, functionality-wise, but now xgo should be happy and compile.