package
0.0.0-20200525085923-a8c937889d1e
Repository: https://github.com/sourcegraph/prototools.git
Documentation: pkg.go.dev

# Functions

AllEnums returnes a list of all the enum type nodes in f, including nested ones.
AllMessages returnes a list of all the message type nodes in f, including nested ones.
CountElem returns the number of elements that the symbol path contains.
FieldTypeName returns the protobuf-syntax name for the given field type.
IsFullyQualified tells if the given symbol path is fully-qualified or not (i.e.
NewResolver returns a new symbol resolver for the given files.
PackageName returns the package name of the given file, which is either the result of f.GetPackage (a package set explicitly by the user) or the name of the file.
ParseParams parses the comma-separated command-line parameters passed to the generator by protoc via r.GetParameters.
ReadJSONFile opens and unmarshals the JSON dump file from the protoc-gen-json plugin, returning any error that occurs.
TrimElem returns the given symbol path with at max N elements trimmed off the left (outermost) side.

# Structs

Resolver handles the resolution of symbol names to their respective files (it answers the question "which file was this symbol defined in?").

# Interfaces

ASTNamedNode is a type from the descriptor package that can return its name string.
ASTNode is a type from the descriptor package.