internal/nix/importable.go (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | package nix
import "encoding/gob"
type Importable interface {
BleveType() string
GetName() string
GetSource() string
}
func GetKey(i Importable) string {
return i.BleveType() + "/" + i.GetSource() + "/" + i.GetName()
}
func init() {
gob.Register(Option{})
gob.Register(Package{})
}
|