util

package
v48.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 79

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageSet

type PackageSet map[string]bool

PackageSet is a collection of Go packages. Key is the full package import path, value indicates if the package has been indexed.

func GetIndexedPackages

func GetIndexedPackages(content io.Reader) (PackageSet, error)

GetIndexedPackages returns the set of packages that have already been indexed. It finds all entries matching the regex `github\.com/Azure/azure-sdk-for-go/services/.*?"`.

func GetPackagesForIndexing

func GetPackagesForIndexing(dir string) (PackageSet, error)

GetPackagesForIndexing returns the set of packages, calculated from the specified directory, to be indexed. Each directory entry is converted to a complete package path, e.g. "github.com/Azure/azure-sdk-for-go/services/foo/...".

Jump to

Keyboard shortcuts

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