Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortFiles ¶
func SortFiles(files []*descriptorpb.FileDescriptorProto) error
SortFiles topologically sorts the given file descriptor protos, so that every file appears after all of its imports. The result depends only on the order of the given files.
It returns an error if the given files include duplicates (more than one entry with the same path), if any of the files refer to imports which are not present in the given files, or if the imports form a cycle. When it returns an error, the given slice is unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.