package
0.31.0
Repository: https://go.googlesource.com/tools
Documentation: pkg.go.dev

# Packages

Package cursor augments [inspector.Inspector] with [Cursor] functionality allowing more flexibility and control during inspection.
Package edge defines identifiers for each field of an ast.Node struct type that refers to another Node.

# Functions

CloneNode returns a deep copy of a Node.
Deprecation returns the paragraph of the doc comment that starts with the conventional "Deprecation: " marker, as defined by https://go.dev/wiki/Deprecated, or "" if the documented symbol is not deprecated.
Directives returns the directives within the comment.
PosInStringLiteral returns the position within a string literal corresponding to the specified byte offset within the logical string that it denotes.
RangeInStringLiteral calculates the positional range within a string literal corresponding to the specified start and end byte offsets within the logical string.

# Structs

A directive is a comment line with special meaning to the Go toolchain or another tool.