package
0.0.0-20240310010237-a3f02065c60a
Repository: https://github.com/goki/go-tools.git
Documentation: pkg.go.dev
# Functions
ExtractDoc extracts a section of a package doc comment from the provided contents of an analyzer package's doc.go file.
Format returns a string representation of the expression.
HasSideEffects reports whether evaluation of e has side effects.
Imports returns true if path is imported by pkg.
LineStart returns the position of the start of the specified line within file f, or NoPos if there is no line of that number.
MustExtractDoc is like [ExtractDoc] but it panics on error.
ReadFile reads a file and adds it to the FileSet so that we can report errors against it using lineStart.
Unparen returns e with any enclosing parentheses stripped.