package components import ( "go.alanpearce.eu/searchix/internal/index" "go.alanpearce.eu/searchix/internal/nix" ) templ Packages(result *index.Result) { for _, hit := range result.Hits { if m := convertMatch[nix.Package](hit.Data); m != nil { @packageRow(*m) } }
Attribute Name Description
} templ packageRow(p nix.Package) { @openDialogLink(p.Attribute) { p.Name } { p.Description } }