Passed
Pull Request — master (#40)
by Stefano
03:01
created

cookie.StatelessJar.Cookies   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
package cookie
2
3
import (
4
	"net/http"
5
	"net/url"
6
)
7
8
func NewStatelessJar(cookies []*http.Cookie) StatelessJar {
0 ignored issues
show
introduced by
exported function NewStatelessJar should have comment or be unexported
Loading history...
9
	return StatelessJar{cookies: cookies}
10
}
11
12
type StatelessJar struct {
0 ignored issues
show
introduced by
exported type StatelessJar should have comment or be unexported
Loading history...
13
	cookies []*http.Cookie
14
}
15
16
func (s StatelessJar) SetCookies(u *url.URL, cookies []*http.Cookie) {
0 ignored issues
show
introduced by
exported method StatelessJar.SetCookies should have comment or be unexported
Loading history...
17
}
18
19
func (s StatelessJar) Cookies(u *url.URL) []*http.Cookie {
0 ignored issues
show
introduced by
exported method StatelessJar.Cookies should have comment or be unexported
Loading history...
20
	return s.cookies
21
}
22