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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package pprof
     6  
     7  import (
     8  	q "net/http/pprof"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "pprof",
    18  		Path: "net/http/pprof",
    19  		Deps: map[string]string{
    20  			"bufio":            "bufio",
    21  			"bytes":            "bytes",
    22  			"context":          "context",
    23  			"fmt":              "fmt",
    24  			"html/template":    "template",
    25  			"internal/profile": "profile",
    26  			"io":               "io",
    27  			"log":              "log",
    28  			"net/http":         "http",
    29  			"os":               "os",
    30  			"runtime":          "runtime",
    31  			"runtime/pprof":    "pprof",
    32  			"runtime/trace":    "trace",
    33  			"sort":             "sort",
    34  			"strconv":          "strconv",
    35  			"strings":          "strings",
    36  			"time":             "time",
    37  		},
    38  		Interfaces: map[string]reflect.Type{},
    39  		NamedTypes: map[string]gossa.NamedType{},
    40  		AliasTypes: map[string]reflect.Type{},
    41  		Vars:       map[string]reflect.Value{},
    42  		Funcs: map[string]reflect.Value{
    43  			"Cmdline": reflect.ValueOf(q.Cmdline),
    44  			"Handler": reflect.ValueOf(q.Handler),
    45  			"Index":   reflect.ValueOf(q.Index),
    46  			"Profile": reflect.ValueOf(q.Profile),
    47  			"Symbol":  reflect.ValueOf(q.Symbol),
    48  			"Trace":   reflect.ValueOf(q.Trace),
    49  		},
    50  		TypedConsts:   map[string]gossa.TypedConst{},
    51  		UntypedConsts: map[string]gossa.UntypedConst{},
    52  	})
    53  }