veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.17k stars 219 forks source link

go vet issue: Surface not declared by package sdl #461

Closed neophob closed 4 years ago

neophob commented 4 years ago

Hi thanks for that nice library! I use v0.4.4 in my project (https://github.com/neophob/ganother-world). anyway when i run go vet it reports this error:

vet: sdl/hal-sdl.go:17:16: Surface not declared by package sdl

hal-sdl.go line 17 looks like (https://github.com/neophob/ganother-world/blob/master/sdl/hal-sdl.go#L17):

    surface  *sdl.Surface

I did not experience any issue with the lib itself, its more a question why it appears as error... let me know if you need more details!

neophob commented 4 years ago

doh! GOARCH=wasm GOOS=js go vetof course go complains if I compile the wasm version. sorry for the noise!