github.com/goplus/igop@v0.17.0/pkg/debug/gosym/go120_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.20
     4  // +build go1.20
     5  
     6  package gosym
     7  
     8  import (
     9  	q "debug/gosym"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "gosym",
    19  		Path: "debug/gosym",
    20  		Deps: map[string]string{
    21  			"bytes":           "bytes",
    22  			"encoding/binary": "binary",
    23  			"fmt":             "fmt",
    24  			"sort":            "sort",
    25  			"strconv":         "strconv",
    26  			"strings":         "strings",
    27  			"sync":            "sync",
    28  		},
    29  		Interfaces: map[string]reflect.Type{},
    30  		NamedTypes: map[string]reflect.Type{
    31  			"DecodingError":    reflect.TypeOf((*q.DecodingError)(nil)).Elem(),
    32  			"Func":             reflect.TypeOf((*q.Func)(nil)).Elem(),
    33  			"LineTable":        reflect.TypeOf((*q.LineTable)(nil)).Elem(),
    34  			"Obj":              reflect.TypeOf((*q.Obj)(nil)).Elem(),
    35  			"Sym":              reflect.TypeOf((*q.Sym)(nil)).Elem(),
    36  			"Table":            reflect.TypeOf((*q.Table)(nil)).Elem(),
    37  			"UnknownFileError": reflect.TypeOf((*q.UnknownFileError)(nil)).Elem(),
    38  			"UnknownLineError": reflect.TypeOf((*q.UnknownLineError)(nil)).Elem(),
    39  		},
    40  		AliasTypes: map[string]reflect.Type{},
    41  		Vars:       map[string]reflect.Value{},
    42  		Funcs: map[string]reflect.Value{
    43  			"NewLineTable": reflect.ValueOf(q.NewLineTable),
    44  			"NewTable":     reflect.ValueOf(q.NewTable),
    45  		},
    46  		TypedConsts:   map[string]igop.TypedConst{},
    47  		UntypedConsts: map[string]igop.UntypedConst{},
    48  	})
    49  }