all repos — searchix @ c51ca7c62e08f43ef9974af35886d30ce54a1f22

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: use interface to unify Options and Packages

Alan Pearce
commit

c51ca7c62e08f43ef9974af35886d30ce54a1f22

parent

0ef52f2f82c62694c5420f7f6c82fb8c45900d1d

1 file changed, 11 insertions(+), 0 deletions(-)

changed files
A internal/nix/importable.go
@@ -0,0 +1,11 @@
+package nix + +type Importable interface { + BleveType() string + GetName() string + GetSource() string +} + +func GetKey(i Importable) string { + return i.BleveType() + "/" + i.GetSource() + "/" + i.GetName() +}