fastscan

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	PackageName string
	Imports     []string
}

Result is the result of scanning a Protobuf source file. It contains the information extracted from the file.

func Scan

func Scan(r io.Reader) (Result, error)

Scan scans the given reader, which should contain Protobuf source, and returns the set of imports declared in the file. The result also contains the value of any package declaration in the file. It returns an error if there is an I/O error reading from r. In the event of such an error, it will still return a result that contains as much information as was found before the I/O error occurred.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL