package nix import "time" type Package struct { Name string Attribute string `storm:"id"` Source string Broken bool Definition string Description string Homepages []string Licenses []License LongDescription Markdown MainProgram string Programs []string Maintainers []Maintainer PackageSet string Platforms []string Version string ImportedAt time.Time `storm:"index"` } type License struct { FullName string Name string SPDXId string URL string AppendixURL string } type Maintainer struct { Github string Name string } func (Package) BleveType() string { return "package" } func (p Package) GetName() string { return p.Attribute } func (p Package) GetSource() string { return p.Source }