From c51ca7c62e08f43ef9974af35886d30ce54a1f22 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 16 May 2024 20:22:42 +0200 Subject: refactor: use interface to unify Options and Packages --- internal/options/option.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 internal/options/option.go (limited to 'internal/options/option.go') 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" -} -- cgit 1.4.1