client.defaultClientConfig   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
dl 0
loc 5
c 0
b 0
f 0
rs 10
nop 0
1
package client
2
3
import "net/http"
4
5
type clientConfig struct {
6
	httpClient *http.Client
7
	delay      int
8
	baseURL    string
9
}
10
11
func defaultClientConfig() *clientConfig {
12
	return &clientConfig{
13
		httpClient: http.DefaultClient,
14
		delay:      0,
15
		baseURL:    "https://httpstat.us",
16
	}
17
}
18