github.com/goplus/igop@v0.17.0/pkg/net/http/pprof/go119_export.go (about)

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