|
|
|
|
|
by bcgraham
3985 days ago
|
|
An idea is to include a function in the library called MustNewServer() that panics instead of returning an error. A usability perk of having single return is that the function can be chained, i. e., ws := gowork.MustNewServer(key).AddParams(...)
|
|
As long as there is an alternative function which returns errors :)