Merge pull request #17 from CodeLingoBot/rewrite

Fix function comments based on best practices from Effective Go
This commit is contained in:
Erik Unger 2019-03-14 08:18:43 +01:00 committed by GitHub
commit 19c5ce3f50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
rss.go
View file

@ -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},