I'm trying to extract the documentation for various functions an methods using the go/doc package. The code looks pretty much as below. The issue is that it prints/provides only the functions from the package(exported and unexported) but no method regardless if they're exported or unexported. I also tried AllMethods
mode with no success. Is this a bug or I'm missing something?
pkg := doc.New(mainPkg, "./", doc.AllDecls)
for _, vv := range pkg.Funcs {
log.Infof("vv.Name %v, vv.Recv %v", vv.Name, vv.Recv, )
}