Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No documentation found when trying to look up go-sdl function. #21

Open
lazyhacker opened this issue Feb 6, 2017 · 3 comments
Open

Comments

@lazyhacker
Copy link

package main                                                                    
                                                                                
import (                                                                        
    "log"                                                                       
                                                                                
    "github.com/veandco/go-sdl2/sdl"                                            
)                                                                               
                                                                                
func main() {                                                                   
    err := sdl.Init(sdl.INIT_EVERYTHING)                                        
    if err != nil {                                                             
        log.Fatalf("Unable to init SDL")                                        
    }                                                                           
    defer sdl.Quit()                                                                                                                                        
}

$gogetdoc -pos main.go:#95 // the Init call

It returns an error: $GOPATH/src/github.com/veandco/go-sdl2/sdl/yuv_sw_c.go:17:16: undeclared name: Surface gogetdoc: no documentation found

@zmb3
Copy link
Owner

zmb3 commented Feb 7, 2017

Thanks for the report. This is most likely because I've disabled CGo. I will take a look.

@thomas-holmes
Copy link

Any possibility of reviving this? I do a lot of work with veandco/go-sdl2 and would love to have this work.

@thomas-holmes
Copy link

I tried updating

ctx.CgoEnabled = false

to true, but that wasn't enough. Just made the check very slow and still didn't return a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants