Golang net/http/cookiejar.Options and PublicSuffixList types example

package net/http/cookiejar

Golang net/http/cookiejar.Options and PublicSuffixList types usage example

 type PSList struct{}

 jar, err := New(&Options{PublicSuffixList: PSList{}})
 if err != nil {
 panic(err)
 }

References :

http://golang.org/pkg/net/http/cookiejar/#Options

http://golang.org/pkg/net/http/cookiejar/#PublicSuffixList

Advertisement