all repos — searchix @ b8da487f774aa2399b79bbde5f2e6e13be4fce1c

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

internal/nix/importable.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
package nix

type Importable interface {
	BleveType() string
	GetName() string
	GetSource() string
}

func GetKey(i Importable) string {
	return i.BleveType() + "/" + i.GetSource() + "/" + i.GetName()
}