github.com/goplus/gossa@v0.3.25/pkg/go/format/go115_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package format
     6  
     7  import (
     8  	q "go/format"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "format",
    18  		Path: "go/format",
    19  		Deps: map[string]string{
    20  			"bytes":      "bytes",
    21  			"fmt":        "fmt",
    22  			"go/ast":     "ast",
    23  			"go/parser":  "parser",
    24  			"go/printer": "printer",
    25  			"go/token":   "token",
    26  			"io":         "io",
    27  			"strings":    "strings",
    28  		},
    29  		Interfaces: map[string]reflect.Type{},
    30  		NamedTypes: map[string]gossa.NamedType{},
    31  		AliasTypes: map[string]reflect.Type{},
    32  		Vars:       map[string]reflect.Value{},
    33  		Funcs: map[string]reflect.Value{
    34  			"Node":   reflect.ValueOf(q.Node),
    35  			"Source": reflect.ValueOf(q.Source),
    36  		},
    37  		TypedConsts:   map[string]gossa.TypedConst{},
    38  		UntypedConsts: map[string]gossa.UntypedConst{},
    39  	})
    40  }