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, }