Add debug flag
This commit is contained in:
		@@ -21,6 +21,7 @@ type (
 | 
			
		||||
		accessToken string
 | 
			
		||||
		userAgent   string
 | 
			
		||||
		Client      *http.Client
 | 
			
		||||
		debug       bool
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	Result struct {
 | 
			
		||||
@@ -102,6 +103,12 @@ func WithUserAgent(userAgent string) func(*Client) {
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func WithDebug(debug bool) func(*Client) {
 | 
			
		||||
	return func(c *Client) {
 | 
			
		||||
		c.debug = debug
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewClientWithUserAgent(accessToken string, userAgent string) *Client {
 | 
			
		||||
	tr := &http.Transport{
 | 
			
		||||
		//TLSNextProto: make(map[string]func(authority string, c *tls.Conn) http.RoundTripper),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user