about summary refs log tree commit diff stats
path: root/internal/packages/package.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-16 20:22:42 +0200
committerAlan Pearce2024-05-16 20:31:03 +0200
commitc51ca7c62e08f43ef9974af35886d30ce54a1f22 (patch)
tree6779f521c289d1750ceb35b57fbb0d3acad20385 /internal/packages/package.go
parent0ef52f2f82c62694c5420f7f6c82fb8c45900d1d (diff)
downloadsearchix-c51ca7c62e08f43ef9974af35886d30ce54a1f22.tar.lz
searchix-c51ca7c62e08f43ef9974af35886d30ce54a1f22.tar.zst
searchix-c51ca7c62e08f43ef9974af35886d30ce54a1f22.zip
refactor: use interface to unify Options and Packages
Diffstat (limited to 'internal/packages/package.go')
-rw-r--r--internal/packages/package.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/internal/packages/package.go b/internal/packages/package.go
deleted file mode 100644
index e864b18..0000000
--- a/internal/packages/package.go
+++ /dev/null
@@ -1,36 +0,0 @@
-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"
-}