api: renames create client func

This commit is contained in:
André Carvalho 2017-04-25 11:37:13 -03:00
parent 6fdb468212
commit 5d19d9de34
No known key found for this signature in database
GPG Key ID: 440C9C458D3A1E61
1 changed files with 2 additions and 2 deletions

View File

@ -60,10 +60,10 @@ type Client interface {
Do(context.Context, *http.Request) (*http.Response, []byte, error)
}
// New returns a new Client.
// NewClient returns a new Client.
//
// It is safe to use the returned Client from multiple goroutines.
func New(cfg Config) (Client, error) {
func NewClient(cfg Config) (Client, error) {
u, err := url.Parse(cfg.Address)
if err != nil {
return nil, err