snyk-docker-plugin
Version:
Snyk CLI docker plugin
17 lines (14 loc) • 440 B
text/typescript
export class GoModule {
public name: string;
public version: string;
public packages: string[] = [];
constructor(name: string, version: string) {
this.name = name;
this.version = version;
}
// fullName returns the module's name and version, separated with an `@`. This
// reflects how Go stores them on disk (except for vendored paths).
public fullName(): string {
return this.name + "@" + this.version;
}
}