github.com/goplus/igop@v0.25.0/pkg/go/format/go119_export.go (about)

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