github.com/goplus/gossa@v0.3.25/pkg/net/http/cookiejar/go116_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package cookiejar
     6  
     7  import (
     8  	q "net/http/cookiejar"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "cookiejar",
    18  		Path: "net/http/cookiejar",
    19  		Deps: map[string]string{
    20  			"errors":       "errors",
    21  			"fmt":          "fmt",
    22  			"net":          "net",
    23  			"net/http":     "http",
    24  			"net/url":      "url",
    25  			"sort":         "sort",
    26  			"strings":      "strings",
    27  			"sync":         "sync",
    28  			"time":         "time",
    29  			"unicode/utf8": "utf8",
    30  		},
    31  		Interfaces: map[string]reflect.Type{
    32  			"PublicSuffixList": reflect.TypeOf((*q.PublicSuffixList)(nil)).Elem(),
    33  		},
    34  		NamedTypes: map[string]gossa.NamedType{
    35  			"Jar":     {reflect.TypeOf((*q.Jar)(nil)).Elem(), "", "Cookies,SetCookies,cookies,domainAndType,newEntry,setCookies"},
    36  			"Options": {reflect.TypeOf((*q.Options)(nil)).Elem(), "", ""},
    37  		},
    38  		AliasTypes: map[string]reflect.Type{},
    39  		Vars:       map[string]reflect.Value{},
    40  		Funcs: map[string]reflect.Value{
    41  			"New": reflect.ValueOf(q.New),
    42  		},
    43  		TypedConsts:   map[string]gossa.TypedConst{},
    44  		UntypedConsts: map[string]gossa.UntypedConst{},
    45  	})
    46  }