util

package
Version: v54.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 8 Imported by: 78

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/...".

Source Files

Jump to

Keyboard shortcuts

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