diff options
author | Alan Pearce | 2024-05-05 21:31:40 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-05 21:31:40 +0200 |
commit | 71de5479bc625aa101f72a24b056b687b0630a9a (patch) | |
tree | 8501b1f9c3b9cf27b79e651277c3612f30ed6ec3 /internal | |
parent | 1fdd1f839782339f39a16ba3100dec129cd40a0c (diff) | |
download | searchix-71de5479bc625aa101f72a24b056b687b0630a9a.tar.lz searchix-71de5479bc625aa101f72a24b056b687b0630a9a.tar.zst searchix-71de5479bc625aa101f72a24b056b687b0630a9a.zip |
feat: link to nixpkgs on github for declarations
Diffstat (limited to 'internal')
-rw-r--r-- | internal/options/option.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/options/option.go b/internal/options/option.go index d714ad2..b8b838a 100644 --- a/internal/options/option.go +++ b/internal/options/option.go @@ -47,9 +47,14 @@ func (html *HTML) UnmarshalJSON(raw []byte) error { return nil } +type Link struct { + Name string + URL string `json:"url"` +} + type NixOption struct { Option string - Declarations []string + Declarations []Link Default NixValue Description HTML Example NixValue |