github.com/goplus/gossa@v0.3.25/pkg/net/http/fcgi/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 fcgi
     7  
     8  import (
     9  	q "net/http/fcgi"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "fcgi",
    19  		Path: "net/http/fcgi",
    20  		Deps: map[string]string{
    21  			"bufio":           "bufio",
    22  			"bytes":           "bytes",
    23  			"context":         "context",
    24  			"encoding/binary": "binary",
    25  			"errors":          "errors",
    26  			"fmt":             "fmt",
    27  			"io":              "io",
    28  			"net":             "net",
    29  			"net/http":        "http",
    30  			"net/http/cgi":    "cgi",
    31  			"os":              "os",
    32  			"strings":         "strings",
    33  			"sync":            "sync",
    34  			"time":            "time",
    35  		},
    36  		Interfaces: map[string]reflect.Type{},
    37  		NamedTypes: map[string]gossa.NamedType{},
    38  		AliasTypes: map[string]reflect.Type{},
    39  		Vars: map[string]reflect.Value{
    40  			"ErrConnClosed":     reflect.ValueOf(&q.ErrConnClosed),
    41  			"ErrRequestAborted": reflect.ValueOf(&q.ErrRequestAborted),
    42  		},
    43  		Funcs: map[string]reflect.Value{
    44  			"ProcessEnv": reflect.ValueOf(q.ProcessEnv),
    45  			"Serve":      reflect.ValueOf(q.Serve),
    46  		},
    47  		TypedConsts:   map[string]gossa.TypedConst{},
    48  		UntypedConsts: map[string]gossa.UntypedConst{},
    49  	})
    50  }