gogetdoc icon indicating copy to clipboard operation
gogetdoc copied to clipboard

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

Open lazyhacker opened this issue 8 years ago • 3 comments

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

lazyhacker avatar Feb 06 '17 05:02 lazyhacker

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

zmb3 avatar Feb 07 '17 19:02 zmb3

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

thomas-holmes avatar Apr 19 '18 03:04 thomas-holmes

I tried updating https://github.com/zmb3/gogetdoc/blob/b4c1dcb095da28d1d54e10184a3eddd9b0122f89/main.go#L71 to true, but that wasn't enough. Just made the check very slow and still didn't return a result.

thomas-holmes avatar Apr 19 '18 03:04 thomas-holmes