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/data.go → internal/components/data.go
@@ -12,8 +12,8 @@ "alin.ovh/searchix/internal/pagination" ) type TemplateData struct { - Sources []*config.Source - Source *config.Source + Sources []config.Source + Source config.Source Query string ExtraHeadHTML string Code int