github.com/goplus/gossa@v0.3.25/pkg/go/printer/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 printer 7 8 import ( 9 q "go/printer" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "printer", 20 Path: "go/printer", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "fmt": "fmt", 24 "go/ast": "ast", 25 "go/build/constraint": "constraint", 26 "go/internal/typeparams": "typeparams", 27 "go/token": "token", 28 "io": "io", 29 "math": "math", 30 "os": "os", 31 "sort": "sort", 32 "strconv": "strconv", 33 "strings": "strings", 34 "text/tabwriter": "tabwriter", 35 "unicode": "unicode", 36 "unicode/utf8": "utf8", 37 }, 38 Interfaces: map[string]reflect.Type{}, 39 NamedTypes: map[string]gossa.NamedType{ 40 "CommentedNode": {reflect.TypeOf((*q.CommentedNode)(nil)).Elem(), "", ""}, 41 "Config": {reflect.TypeOf((*q.Config)(nil)).Elem(), "", "Fprint,fprint"}, 42 "Mode": {reflect.TypeOf((*q.Mode)(nil)).Elem(), "", ""}, 43 }, 44 AliasTypes: map[string]reflect.Type{}, 45 Vars: map[string]reflect.Value{}, 46 Funcs: map[string]reflect.Value{ 47 "Fprint": reflect.ValueOf(q.Fprint), 48 }, 49 TypedConsts: map[string]gossa.TypedConst{ 50 "RawFormat": {reflect.TypeOf(q.RawFormat), constant.MakeInt64(int64(q.RawFormat))}, 51 "SourcePos": {reflect.TypeOf(q.SourcePos), constant.MakeInt64(int64(q.SourcePos))}, 52 "TabIndent": {reflect.TypeOf(q.TabIndent), constant.MakeInt64(int64(q.TabIndent))}, 53 "UseSpaces": {reflect.TypeOf(q.UseSpaces), constant.MakeInt64(int64(q.UseSpaces))}, 54 }, 55 UntypedConsts: map[string]gossa.UntypedConst{}, 56 }) 57 }