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

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