UNPKG

snyk-docker-plugin

Version:
17 lines (14 loc) 440 B
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; } }