From 5b9e67fd5129dec75169a1a070c70f910dff6da2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 4 May 2024 12:54:31 +0200 Subject: feat: frontend search implementation --- internal/server/option.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 internal/server/option.go (limited to 'internal/server/option.go') diff --git a/internal/server/option.go b/internal/server/option.go new file mode 100644 index 0000000..be42689 --- /dev/null +++ b/internal/server/option.go @@ -0,0 +1,15 @@ +package server + +type NixValue struct { + Kind string `json:"_type"` + Value string `json:"text"` +} + +type Option struct { + Declarations []string + Default NixValue + Description string + Example NixValue + ReadOnly bool + Kind string `json:"type"` +} -- cgit 1.4.1