From 42611df8133fc88bac5947a65a18fa095d68a951 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 17 May 2024 14:05:31 +0200 Subject: feat(index): enable storage of package data --- internal/nix/importable.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'internal/nix/importable.go') diff --git a/internal/nix/importable.go b/internal/nix/importable.go index 309ec5f..37532cd 100644 --- a/internal/nix/importable.go +++ b/internal/nix/importable.go @@ -1,5 +1,7 @@ package nix +import "encoding/gob" + type Importable interface { BleveType() string GetName() string @@ -9,3 +11,8 @@ type Importable interface { func GetKey(i Importable) string { return i.BleveType() + "/" + i.GetSource() + "/" + i.GetName() } + +func init() { + gob.Register(Option{}) + gob.Register(Package{}) +} -- cgit 1.4.1