package components import ( "go.alanpearce.eu/searchix/internal/index" "go.alanpearce.eu/searchix/internal/nix" ) templ Combined(result *index.Result) { for _, hit := range result.Hits { }
Attribute Description
@openCombinedDialogLink(nix.GetKey(hit.Data)) switch hit.Data.(type) { case nix.Option: if o := convertMatch[nix.Option](hit.Data); o != nil { @markdown(firstSentence(o.Description)) } case nix.Package: if o := convertMatch[nix.Package](hit.Data); o != nil { { firstSentence(o.Description) } } }
}