Skip to content

Commit 5d19d9d

Browse files
committed
api: renames create client func
1 parent 6fdb468 commit 5d19d9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ type Client interface {
6060
Do(context.Context, *http.Request) (*http.Response, []byte, error)
6161
}
6262

63-
// New returns a new Client.
63+
// NewClient returns a new Client.
6464
//
6565
// It is safe to use the returned Client from multiple goroutines.
66-
func New(cfg Config) (Client, error) {
66+
func NewClient(cfg Config) (Client, error) {
6767
u, err := url.Parse(cfg.Address)
6868
if err != nil {
6969
return nil, err

0 commit comments

Comments
 (0)