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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.17 && !go1.18
     4  // +build go1.17,!go1.18
     5  
     6  package httptrace
     7  
     8  import (
     9  	q "net/http/httptrace"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "httptrace",
    19  		Path: "net/http/httptrace",
    20  		Deps: map[string]string{
    21  			"context":           "context",
    22  			"crypto/tls":        "tls",
    23  			"internal/nettrace": "nettrace",
    24  			"net":               "net",
    25  			"net/textproto":     "textproto",
    26  			"reflect":           "reflect",
    27  			"time":              "time",
    28  		},
    29  		Interfaces: map[string]reflect.Type{},
    30  		NamedTypes: map[string]gossa.NamedType{
    31  			"ClientTrace":      {reflect.TypeOf((*q.ClientTrace)(nil)).Elem(), "", "compose,hasNetHooks"},
    32  			"DNSDoneInfo":      {reflect.TypeOf((*q.DNSDoneInfo)(nil)).Elem(), "", ""},
    33  			"DNSStartInfo":     {reflect.TypeOf((*q.DNSStartInfo)(nil)).Elem(), "", ""},
    34  			"GotConnInfo":      {reflect.TypeOf((*q.GotConnInfo)(nil)).Elem(), "", ""},
    35  			"WroteRequestInfo": {reflect.TypeOf((*q.WroteRequestInfo)(nil)).Elem(), "", ""},
    36  		},
    37  		AliasTypes: map[string]reflect.Type{},
    38  		Vars:       map[string]reflect.Value{},
    39  		Funcs: map[string]reflect.Value{
    40  			"ContextClientTrace": reflect.ValueOf(q.ContextClientTrace),
    41  			"WithClientTrace":    reflect.ValueOf(q.WithClientTrace),
    42  		},
    43  		TypedConsts:   map[string]gossa.TypedConst{},
    44  		UntypedConsts: map[string]gossa.UntypedConst{},
    45  	})
    46  }