github.com/goplus/gossa@v0.3.25/pkg/debug/gosym/go116_export.go (about)

     1  // export by github.com/goplus/gossa/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/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.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]gossa.NamedType{
    29  			"DecodingError":    {reflect.TypeOf((*q.DecodingError)(nil)).Elem(), "", "Error"},
    30  			"Func":             {reflect.TypeOf((*q.Func)(nil)).Elem(), "", ""},
    31  			"LineTable":        {reflect.TypeOf((*q.LineTable)(nil)).Elem(), "", "LineToPC,PCToLine,findFileLine,findFunc,funcName,go12Funcs,go12LineToPC,go12MapFiles,go12PCToFile,go12PCToLine,initFileMap,isGo12,parse,parsePclnTab,pcvalue,readvarint,slice,step,string,stringFrom,uintptr"},
    32  			"Obj":              {reflect.TypeOf((*q.Obj)(nil)).Elem(), "", "alineFromLine,lineFromAline"},
    33  			"Sym":              {reflect.TypeOf((*q.Sym)(nil)).Elem(), "", "BaseName,PackageName,ReceiverName,Static"},
    34  			"Table":            {reflect.TypeOf((*q.Table)(nil)).Elem(), "", "LineToPC,LookupFunc,LookupSym,PCToFunc,PCToLine,SymByAddr"},
    35  			"UnknownFileError": {reflect.TypeOf((*q.UnknownFileError)(nil)).Elem(), "Error", ""},
    36  			"UnknownLineError": {reflect.TypeOf((*q.UnknownLineError)(nil)).Elem(), "", "Error"},
    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]gossa.TypedConst{},
    45  		UntypedConsts: map[string]gossa.UntypedConst{},
    46  	})
    47  }