github.com/goplus/igop@v0.25.0/pkg/net/url/go118_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.18 && !go1.19
     4  // +build go1.18,!go1.19
     5  
     6  package url
     7  
     8  import (
     9  	q "net/url"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "url",
    19  		Path: "net/url",
    20  		Deps: map[string]string{
    21  			"errors":  "errors",
    22  			"fmt":     "fmt",
    23  			"sort":    "sort",
    24  			"strconv": "strconv",
    25  			"strings": "strings",
    26  		},
    27  		Interfaces: map[string]reflect.Type{},
    28  		NamedTypes: map[string]reflect.Type{
    29  			"Error":            reflect.TypeOf((*q.Error)(nil)).Elem(),
    30  			"EscapeError":      reflect.TypeOf((*q.EscapeError)(nil)).Elem(),
    31  			"InvalidHostError": reflect.TypeOf((*q.InvalidHostError)(nil)).Elem(),
    32  			"URL":              reflect.TypeOf((*q.URL)(nil)).Elem(),
    33  			"Userinfo":         reflect.TypeOf((*q.Userinfo)(nil)).Elem(),
    34  			"Values":           reflect.TypeOf((*q.Values)(nil)).Elem(),
    35  		},
    36  		AliasTypes: map[string]reflect.Type{},
    37  		Vars:       map[string]reflect.Value{},
    38  		Funcs: map[string]reflect.Value{
    39  			"Parse":           reflect.ValueOf(q.Parse),
    40  			"ParseQuery":      reflect.ValueOf(q.ParseQuery),
    41  			"ParseRequestURI": reflect.ValueOf(q.ParseRequestURI),
    42  			"PathEscape":      reflect.ValueOf(q.PathEscape),
    43  			"PathUnescape":    reflect.ValueOf(q.PathUnescape),
    44  			"QueryEscape":     reflect.ValueOf(q.QueryEscape),
    45  			"QueryUnescape":   reflect.ValueOf(q.QueryUnescape),
    46  			"User":            reflect.ValueOf(q.User),
    47  			"UserPassword":    reflect.ValueOf(q.UserPassword),
    48  		},
    49  		TypedConsts:   map[string]igop.TypedConst{},
    50  		UntypedConsts: map[string]igop.UntypedConst{},
    51  	})
    52  }