github.com/goplus/gossa@v0.3.25/pkg/net/url/go118_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.18
     4  // +build go1.18
     5  
     6  package url
     7  
     8  import (
     9  	q "net/url"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.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]gossa.NamedType{
    29  			"Error":            {reflect.TypeOf((*q.Error)(nil)).Elem(), "", "Error,Temporary,Timeout,Unwrap"},
    30  			"EscapeError":      {reflect.TypeOf((*q.EscapeError)(nil)).Elem(), "Error", ""},
    31  			"InvalidHostError": {reflect.TypeOf((*q.InvalidHostError)(nil)).Elem(), "Error", ""},
    32  			"URL":              {reflect.TypeOf((*q.URL)(nil)).Elem(), "", "EscapedFragment,EscapedPath,Hostname,IsAbs,MarshalBinary,Parse,Port,Query,Redacted,RequestURI,ResolveReference,String,UnmarshalBinary,setFragment,setPath"},
    33  			"Userinfo":         {reflect.TypeOf((*q.Userinfo)(nil)).Elem(), "", "Password,String,Username"},
    34  			"Values":           {reflect.TypeOf((*q.Values)(nil)).Elem(), "Add,Del,Encode,Get,Has,Set", ""},
    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]gossa.TypedConst{},
    50  		UntypedConsts: map[string]gossa.UntypedConst{},
    51  	})
    52  }