packageClause prints the package clause.
()
| 184 | |
| 185 | // packageClause prints the package clause. |
| 186 | func (pkg *Package) packageClause() { |
| 187 | importPath := pkg.build.ImportComment |
| 188 | if importPath == "" { |
| 189 | importPath = pkg.build.ImportPath |
| 190 | } |
| 191 | |
| 192 | pkg.Printf("package %s // import %q\n\n", pkg.name, importPath) |
| 193 | } |
| 194 | |
| 195 | // bugs prints the BUGS information for the package. |
| 196 | // TODO: Provide access to TODOs and NOTEs as well (very noisy so off by default)? |