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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package cgi
     6  
     7  import (
     8  	q "net/http/cgi"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "cgi",
    18  		Path: "net/http/cgi",
    19  		Deps: map[string]string{
    20  			"bufio":                                 "bufio",
    21  			"crypto/tls":                            "tls",
    22  			"errors":                                "errors",
    23  			"fmt":                                   "fmt",
    24  			"io":                                    "io",
    25  			"log":                                   "log",
    26  			"net":                                   "net",
    27  			"net/http":                              "http",
    28  			"net/textproto":                         "textproto",
    29  			"net/url":                               "url",
    30  			"os":                                    "os",
    31  			"os/exec":                               "exec",
    32  			"path/filepath":                         "filepath",
    33  			"regexp":                                "regexp",
    34  			"runtime":                               "runtime",
    35  			"strconv":                               "strconv",
    36  			"strings":                               "strings",
    37  			"vendor/golang.org/x/net/http/httpguts": "httpguts",
    38  		},
    39  		Interfaces: map[string]reflect.Type{},
    40  		NamedTypes: map[string]gossa.NamedType{
    41  			"Handler": {reflect.TypeOf((*q.Handler)(nil)).Elem(), "", "ServeHTTP,handleInternalRedirect,printf,stderr"},
    42  		},
    43  		AliasTypes: map[string]reflect.Type{},
    44  		Vars:       map[string]reflect.Value{},
    45  		Funcs: map[string]reflect.Value{
    46  			"Request":        reflect.ValueOf(q.Request),
    47  			"RequestFromMap": reflect.ValueOf(q.RequestFromMap),
    48  			"Serve":          reflect.ValueOf(q.Serve),
    49  		},
    50  		TypedConsts:   map[string]gossa.TypedConst{},
    51  		UntypedConsts: map[string]gossa.UntypedConst{},
    52  	})
    53  }