refactor: reduce use of pointers in particular, Source can no longer be nil. Instantiate a Source with an Importer of All instead
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M internal/components/search.go → internal/components/search.go
@@ -19,7 +19,7 @@ Search( FieldSet( Legend( ID("legend"), - H2(g.Textf("%s search", sourceNameAndType(tdata.Source))), + H2(g.Textf("%s search", tdata.Source.String())), A( Class("help"), Target("_blank"),@@ -50,7 +50,7 @@ return Page( tdata, P( g.Text("Search Nix packages and options from "), - MapCommaList(tdata.Sources, func(source *config.Source) g.Node { + MapCommaList(tdata.Sources, func(source config.Source) g.Node { return A(Href(source.Repo.String()), g.Text(source.Name)) }), ),