GetClient constructs a singleton instance of the loldrivers client. If the client wasn't initialized, this function creates a new client with default sane settings.
()
| 97 | // If the client wasn't initialized, this function creates a new client |
| 98 | // with default sane settings. |
| 99 | func GetClient() *Client { |
| 100 | if c == nil { |
| 101 | c = initClient() |
| 102 | } |
| 103 | return c |
| 104 | } |
| 105 | |
| 106 | func initClient(options ...Option) *Client { |
| 107 | if c == nil { |