MCPcopy
hub / github.com/tailscale/tailscale / packageClause

Method packageClause

tempfork/pkgdoc/pkgdoc.go:186–193  ·  view source on GitHub ↗

packageClause prints the package clause.

()

Source from the content-addressed store, hash-verified

184
185// packageClause prints the package clause.
186func (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)?

Callers 1

packageClauseMethod · 0.45

Calls 1

PrintfMethod · 0.95

Tested by

no test coverage detected