Minor fixes and first API test changeover (#243)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-07 15:01:18 -04:00
1 parent d74e30d94a
commit df4730b1a0
16 files changed
+167 -145

No files matched your search

+2 -2
View File
@@ -62,7 +62,7 @@ func fillTemplates() {
for _, in := range inputStructs {
outBuf := new(bytes.Buffer)
input := templateInput{
ClientName: strings.ToLower(in.generatedStructure.name),
ClientName: strings.ToLower(in.generatedStructure.name) + "s",
Name: in.generatedStructure.name,
Package: in.generatedStructure.pkg,
Fields: in.generatedStructure.fields,
@@ -453,7 +453,7 @@ type {{ .ClientName }}Client struct {
client *api.Client
}
func New{{ .Name }}Client(c *api.Client) *{{ .ClientName }}Client {
func New{{ .Name }}sClient(c *api.Client) *{{ .ClientName }}Client {
return &{{ .ClientName }}Client{ client: c }
}
`))