func removeAssociations(dpkg *doc.Package) { for _, t := range dpkg.Types { dpkg.Funcs = append(dpkg.Funcs, t.Funcs...) t.Funcs = nil } sort.Sort(byFuncName(dpkg.Funcs)) }
func untangleDoc(dpkg *doc.Package) { for _, t := range dpkg.Types { dpkg.Consts = append(dpkg.Consts, t.Consts...) t.Consts = nil dpkg.Vars = append(dpkg.Vars, t.Vars...) t.Vars = nil dpkg.Funcs = append(dpkg.Funcs, t.Funcs...) t.Funcs = nil } }
func untangleDoc(pkg *godoc.Package) { for _, t := range pkg.Types { pkg.Consts = append(pkg.Consts, t.Consts...) t.Consts = nil pkg.Vars = append(pkg.Vars, t.Vars...) t.Vars = nil pkg.Funcs = append(pkg.Funcs, t.Funcs...) t.Funcs = nil } }