Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Conditionally remove service name from constructor #217

Merged
merged 1 commit into from
Jun 10, 2016

Conversation

saicheems
Copy link
Contributor

Changes client constructor to NewClient if the package name matches
the service name, or if there's only one service in the model.

Changes client constructor to `NewClient` if the package name matches
the service name, or if there's only one service in the model.
@broady
Copy link
Contributor

broady commented Jun 10, 2016

LGTM

@saicheems
Copy link
Contributor Author

For logging, this generates
logging_client.go => NewClient
metrics_client.go => NewMetricsClient
config_client.go => NewConfigClient

@jmuk
Copy link
Contributor

jmuk commented Jun 10, 2016

LGTM

@saicheems saicheems merged commit 84beb69 into googleapis:master Jun 10, 2016
@saicheems saicheems deleted the client_name branch June 10, 2016 22:30
ethanbao pushed a commit to ethanbao/toolkit that referenced this pull request Jul 19, 2016
Changes client constructor to `NewClient` if the package name matches
the service name, or if there's only one service in the model.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants