modinfo

package
v30.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindVersionSuffix

func FindVersionSuffix(path string) string

FindVersionSuffix returns the version suffix or the empty string.

func HasVersionSuffix

func HasVersionSuffix(path string) bool

HasVersionSuffix returns true if the specified path has a version suffix in the form vN.

Types

type Provider

type Provider interface {
	DestDir() string
	NewExports() bool
	BreakingChanges() bool
	VersionSuffix() bool
	NewModule() bool
	GenerateReport() report.Package
}

Provider provides information about a module staged for release.

func GetModuleInfo

func GetModuleInfo(baseline, staged string) (Provider, error)

GetModuleInfo collects information about a module staged for release. baseline is the directory for the current module staged is the directory for the module staged for release

Jump to

Keyboard shortcuts

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