1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
// 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()
}
|