From f262277acae21e36dd7a2b396e477f183aff283f Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 10 Mar 2025 11:18:42 +0000 Subject: [PATCH] rename TemplateRegistry factory method --- gignore.go | 2 +- internal/registry/registry.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gignore.go b/gignore.go index cb571e6..da795ab 100644 --- a/gignore.go +++ b/gignore.go @@ -18,7 +18,7 @@ type GignoreClient struct { func New(options ...Option) *GignoreClient { gc := &GignoreClient{ - registry.NewTemplateRegistry(), + registry.New(), filewriter.New()} for _, option := range options { diff --git a/internal/registry/registry.go b/internal/registry/registry.go index 4bcce7c..e779b26 100644 --- a/internal/registry/registry.go +++ b/internal/registry/registry.go @@ -15,7 +15,7 @@ type TemplateRegistry struct { Directory string } -func NewTemplateRegistry() *TemplateRegistry { +func New() *TemplateRegistry { return &TemplateRegistry{ templates: templates, }