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

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