| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"net/http/cookiejar" |
| 10 |
"reflect" |
| 11 |
) |
| 12 |
|
| 13 |
func init() { |
| 14 |
Symbols["net/http/cookiejar/cookiejar"] = map[string]reflect.Value{ |
| 15 |
|
| 16 |
"New": reflect.ValueOf(cookiejar.New), |
| 17 |
|
| 18 |
|
| 19 |
"Jar": reflect.ValueOf((*cookiejar.Jar)(nil)), |
| 20 |
"Options": reflect.ValueOf((*cookiejar.Options)(nil)), |
| 21 |
"PublicSuffixList": reflect.ValueOf((*cookiejar.PublicSuffixList)(nil)), |
| 22 |
|
| 23 |
|
| 24 |
"_PublicSuffixList": reflect.ValueOf((*_net_http_cookiejar_PublicSuffixList)(nil)), |
| 25 |
} |
| 26 |
} |
| 27 |
|
| 28 |
|
| 29 |
type _net_http_cookiejar_PublicSuffixList struct { |
| 30 |
IValue interface{} |
| 31 |
WPublicSuffix func(domain string) string |
| 32 |
WString func() string |
| 33 |
} |
| 34 |
|
| 35 |
func (W _net_http_cookiejar_PublicSuffixList) PublicSuffix(domain string) string { |
| 36 |
return W.WPublicSuffix(domain) |
| 37 |
} |
| 38 |
func (W _net_http_cookiejar_PublicSuffixList) String() string { |
| 39 |
if W.WString == nil { |
| 40 |
return "" |
| 41 |
} |
| 42 |
return W.WString() |
| 43 |
} |