snyk-go-plugin
Version:
Snyk CLI Golang plugin
13 lines (12 loc) • 423 B
TypeScript
interface GoModule {
Version: string;
Path: string;
}
/**
* Construct a PackageURL string for a given Go module and import path.
*
* For a definition of golang type purls, see:
* https://github.com/package-url/purl-spec/blob/9041aa74236686b23153652f8cd3862eef8c33a9/types-doc/golang-definition.md
*/
export declare function createGoPurl(goModule: GoModule, importPath?: string): string | undefined;
export {};