diff options
author | Alan Pearce | 2024-05-16 20:22:42 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-16 20:31:03 +0200 |
commit | c51ca7c62e08f43ef9974af35886d30ce54a1f22 (patch) | |
tree | 6779f521c289d1750ceb35b57fbb0d3acad20385 /internal/options/option.go | |
parent | 0ef52f2f82c62694c5420f7f6c82fb8c45900d1d (diff) | |
download | searchix-c51ca7c62e08f43ef9974af35886d30ce54a1f22.tar.lz searchix-c51ca7c62e08f43ef9974af35886d30ce54a1f22.tar.zst searchix-c51ca7c62e08f43ef9974af35886d30ce54a1f22.zip |
refactor: use interface to unify Options and Packages
Diffstat (limited to 'internal/options/option.go')
-rw-r--r-- | internal/options/option.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/internal/options/option.go b/internal/options/option.go deleted file mode 100644 index a93b4e2..0000000 --- a/internal/options/option.go +++ /dev/null @@ -1,30 +0,0 @@ -package options - -type Markdown string - -type NixValue struct { - Text string `json:",omitempty"` - Markdown Markdown `json:",omitempty"` -} - -type Link struct { - Name string - URL string -} - -type NixOption struct { - Name string - Source string - - Declarations []Link - Default *NixValue `json:",omitempty"` - Description Markdown - Example *NixValue `json:",omitempty"` - Loc []string - RelatedPackages Markdown `json:",omitempty"` - Type string -} - -func (*NixOption) BleveType() string { - return "option" -} |