| 1 | // Code generated by 'yaegi extract net/http/cookiejar'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 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 | // function, constant and variable definitions |
| 16 | "New": reflect.ValueOf(cookiejar.New), |
| 17 | |
| 18 | // type definitions |
| 19 | "Jar": reflect.ValueOf((*cookiejar.Jar)(nil)), |
| 20 | "Options": reflect.ValueOf((*cookiejar.Options)(nil)), |
| 21 | "PublicSuffixList": reflect.ValueOf((*cookiejar.PublicSuffixList)(nil)), |
| 22 | |
| 23 | // interface wrapper definitions |
| 24 | "_PublicSuffixList": reflect.ValueOf((*_net_http_cookiejar_PublicSuffixList)(nil)), |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | // _net_http_cookiejar_PublicSuffixList is an interface wrapper for PublicSuffixList type |
| 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 | } |