Rename unified client constructors

Client constructor `New` will be used as `package.New()`
in external packages. This definition is not very clear
since it can create new structure or new client or whatever.
`package.NewClient()` is quite unambiguous.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-08-24 10:17:03 +03:00 committed by Stanislav Bogatyrev
parent 55a6509e8f
commit 86d56086e3
8 changed files with 37 additions and 37 deletions

View file

@ -168,7 +168,7 @@ func defaultCfg() *cfg {
}
}
func New(opts ...Option) (*Client, error) {
func NewClient(opts ...Option) (*Client, error) {
cfg := defaultCfg()
for i := range opts {