mirror of
https://github.com/onyx-and-iris/gignore.git
synced 2025-04-01 19:23:51 +01:00
rename TemplateRegistry factory method
This commit is contained in:
parent
c11b94ec0d
commit
f262277aca
@ -18,7 +18,7 @@ type GignoreClient struct {
|
||||
|
||||
func New(options ...Option) *GignoreClient {
|
||||
gc := &GignoreClient{
|
||||
registry.NewTemplateRegistry(),
|
||||
registry.New(),
|
||||
filewriter.New()}
|
||||
|
||||
for _, option := range options {
|
||||
|
@ -15,7 +15,7 @@ type TemplateRegistry struct {
|
||||
Directory string
|
||||
}
|
||||
|
||||
func NewTemplateRegistry() *TemplateRegistry {
|
||||
func New() *TemplateRegistry {
|
||||
return &TemplateRegistry{
|
||||
templates: templates,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user