teslainventory_sdk/client_options.go
Matthieu 'JP' DERASSE 05ac49fd68
Some checks failed
continuous-integration/drone Build is failing
feat(first): First commit with basic implementation. Missing test
2023-08-09 12:11:17 +00:00

12 lines
315 B
Go

package teslastocksdk
// ClientOptions allows for options to be passed into the Client for customization.
type ClientOptions func(*Client)
// WithUserAgent will force the usage of a specific user agent.
func WithUserAgent(userAgent string) ClientOptions {
return func(c *Client) {
c.userAgent = userAgent
}
}