Merge pull request #17 from CodeLingoBot/rewrite
Fix function comments based on best practices from Effective Go
This commit is contained in:
commit
19c5ce3f50
1 changed files with 1 additions and 1 deletions
2
rss.go
2
rss.go
|
@ -94,7 +94,7 @@ func Read(url string) (*Channel, error) {
|
||||||
return ReadWithClient(url, http.DefaultClient)
|
return ReadWithClient(url, http.DefaultClient)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Read without certificate check
|
//InsecureRead reads without certificate check
|
||||||
func InsecureRead(url string) (*Channel, error) {
|
func InsecureRead(url string) (*Channel, error) {
|
||||||
tr := &http.Transport{
|
tr := &http.Transport{
|
||||||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
||||||
|
|
Loading…
Reference in a new issue