Skip to content

Commit af34bd3

Browse files
committed
Fix client namespace in services
1 parent a00f727 commit af34bd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/go/services/service.go.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ package {{ service.name | caseLower }}
1515
import (
1616
"encoding/json"
1717
"errors"
18-
"github.com/{{sdk.gitUserName}}/sdk-for-go/client"
18+
"github.com/{{sdk.gitUserName}}/sdk-for-go/appwrite"
1919
{% if requireModelsPkg %}
2020
"github.com/{{sdk.gitUserName}}/sdk-for-go/models"
2121
{% endif %}
@@ -27,10 +27,10 @@ import (
2727

2828
{{ ((service.name | caseUcfirst) ~ " service") | godocComment }}
2929
type {{ service.name | caseUcfirst }} struct {
30-
client client.Client
30+
client appwrite.Client
3131
}
3232

33-
func New{{ service.name | caseUcfirst }}(clt client.Client) *{{ service.name | caseUcfirst }} {
33+
func New{{ service.name | caseUcfirst }}(clt appwrite.Client) *{{ service.name | caseUcfirst }} {
3434
return &{{ service.name | caseUcfirst }}{
3535
client: clt,
3636
}

0 commit comments

Comments
 (0)