Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Replace Init with NewClient#3

Open
JustinTulloss wants to merge 1 commit intocosn:masterfrom
JustinTulloss:init
Open

Replace Init with NewClient#3
JustinTulloss wants to merge 1 commit intocosn:masterfrom
JustinTulloss:init

Conversation

@JustinTulloss
Copy link

This is slightly more idiomatic go. Instead of creating a struct and
passing it to Init, we replace Init with NewClient which both creates
the struct and initializes it.

This is slightly more idiomatic go. Instead of creating a struct and
passing it to Init, we replace Init with NewClient which both creates
the struct and initializes it.
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.

1 participant