diff options
Diffstat (limited to 'internal/packages/package.go')
-rw-r--r-- | internal/packages/package.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/internal/packages/package.go b/internal/packages/package.go new file mode 100644 index 0000000..e864b18 --- /dev/null +++ b/internal/packages/package.go @@ -0,0 +1,36 @@ +package packages + +type Package struct { + Name string + Meta Meta + Version string +} + +type Meta struct { + Broken bool + Description string + LongDescription string + Homepages []string + Licenses []License + MainProgram string + Maintainers []Maintainer + Platforms []string + Position string +} + +type License struct { + FullName string + Name string + SPDXId string + URL string + AppendixURL string +} + +type Maintainer struct { + Github string + Name string +} + +func (*Package) BleveType() string { + return "package" +} |