Пример #1
0
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
	}
}
Пример #2
0
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
	}
}