rename TemplateRegistry factory method

This commit is contained in:
onyx-and-iris 2025-03-10 11:18:42 +00:00
parent c11b94ec0d
commit f262277aca
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ type GignoreClient struct {
func New(options ...Option) *GignoreClient {
gc := &GignoreClient{
registry.NewTemplateRegistry(),
registry.New(),
filewriter.New()}
for _, option := range options {

View File

@ -15,7 +15,7 @@ type TemplateRegistry struct {
Directory string
}
func NewTemplateRegistry() *TemplateRegistry {
func New() *TemplateRegistry {
return &TemplateRegistry{
templates: templates,
}