github.com/goplus/igop@v0.25.0/pkg/go/printer/go121_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.21 4 // +build go1.21 5 6 package printer 7 8 import ( 9 q "go/printer" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "printer", 20 Path: "go/printer", 21 Deps: map[string]string{ 22 "fmt": "fmt", 23 "go/ast": "ast", 24 "go/build/constraint": "constraint", 25 "go/doc/comment": "comment", 26 "go/token": "token", 27 "io": "io", 28 "math": "math", 29 "os": "os", 30 "sort": "sort", 31 "strconv": "strconv", 32 "strings": "strings", 33 "sync": "sync", 34 "text/tabwriter": "tabwriter", 35 "unicode": "unicode", 36 "unicode/utf8": "utf8", 37 }, 38 Interfaces: map[string]reflect.Type{}, 39 NamedTypes: map[string]reflect.Type{ 40 "CommentedNode": reflect.TypeOf((*q.CommentedNode)(nil)).Elem(), 41 "Config": reflect.TypeOf((*q.Config)(nil)).Elem(), 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]igop.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]igop.UntypedConst{}, 56 }) 57 }