Skip to content

Commit

Permalink
Use CodeName in ranhcer client
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Dec 23, 2017
1 parent 94c8396 commit a212c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/client_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Client struct {
clientbase.APIBaseClient
{{range .schemas}}
{{- if . | hasGet }}{{.ID | capitalize}} {{.ID | capitalize}}Operations
{{- if . | hasGet }}{{.CodeName}} {{.CodeName}}Operations
{{end}}{{end}}}
func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
Expand All @@ -24,7 +24,7 @@ func NewClient(opts *clientbase.ClientOpts) (*Client, error) {
}
{{range .schemas}}
{{- if . | hasGet }}client.{{.ID | capitalize}} = new{{.ID | capitalize}}Client(client)
{{- if . | hasGet }}client.{{.CodeName}} = new{{.CodeName}}Client(client)
{{end}}{{end}}
return client, nil
}
Expand Down

0 comments on commit a212c8c

Please sign in to comment.