forked from TrueCloudLab/frostfs-api-go
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:
parent
55a6509e8f
commit
86d56086e3
8 changed files with 37 additions and 37 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue