mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
* feat: support go1.22 * Temporary fix for consistency tests due to language change in for loops * review: clean old files --------- Co-authored-by: Fernandez Ludovic <[email protected]>
44 lines
1.2 KiB
Go
44 lines
1.2 KiB
Go
// Code generated by 'yaegi extract net/http/cookiejar'. DO NOT EDIT.
|
|
|
|
//go:build go1.22
|
|
// +build go1.22
|
|
|
|
package stdlib
|
|
|
|
import (
|
|
"net/http/cookiejar"
|
|
"reflect"
|
|
)
|
|
|
|
func init() {
|
|
Symbols["net/http/cookiejar/cookiejar"] = map[string]reflect.Value{
|
|
// function, constant and variable definitions
|
|
"New": reflect.ValueOf(cookiejar.New),
|
|
|
|
// type definitions
|
|
"Jar": reflect.ValueOf((*cookiejar.Jar)(nil)),
|
|
"Options": reflect.ValueOf((*cookiejar.Options)(nil)),
|
|
"PublicSuffixList": reflect.ValueOf((*cookiejar.PublicSuffixList)(nil)),
|
|
|
|
// interface wrapper definitions
|
|
"_PublicSuffixList": reflect.ValueOf((*_net_http_cookiejar_PublicSuffixList)(nil)),
|
|
}
|
|
}
|
|
|
|
// _net_http_cookiejar_PublicSuffixList is an interface wrapper for PublicSuffixList type
|
|
type _net_http_cookiejar_PublicSuffixList struct {
|
|
IValue interface{}
|
|
WPublicSuffix func(domain string) string
|
|
WString func() string
|
|
}
|
|
|
|
func (W _net_http_cookiejar_PublicSuffixList) PublicSuffix(domain string) string {
|
|
return W.WPublicSuffix(domain)
|
|
}
|
|
func (W _net_http_cookiejar_PublicSuffixList) String() string {
|
|
if W.WString == nil {
|
|
return ""
|
|
}
|
|
return W.WString()
|
|
}
|