github.com/goplus/igop@v0.25.0/pkg/go/doc/go117_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.17 && !go1.18 4 // +build go1.17,!go1.18 5 6 package doc 7 8 import ( 9 q "go/doc" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "doc", 20 Path: "go/doc", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "fmt": "fmt", 24 "go/ast": "ast", 25 "go/token": "token", 26 "internal/lazyregexp": "lazyregexp", 27 "io": "io", 28 "path": "path", 29 "sort": "sort", 30 "strconv": "strconv", 31 "strings": "strings", 32 "text/template": "template", 33 "unicode": "unicode", 34 "unicode/utf8": "utf8", 35 }, 36 Interfaces: map[string]reflect.Type{}, 37 NamedTypes: map[string]reflect.Type{ 38 "Example": reflect.TypeOf((*q.Example)(nil)).Elem(), 39 "Filter": reflect.TypeOf((*q.Filter)(nil)).Elem(), 40 "Func": reflect.TypeOf((*q.Func)(nil)).Elem(), 41 "Mode": reflect.TypeOf((*q.Mode)(nil)).Elem(), 42 "Note": reflect.TypeOf((*q.Note)(nil)).Elem(), 43 "Package": reflect.TypeOf((*q.Package)(nil)).Elem(), 44 "Type": reflect.TypeOf((*q.Type)(nil)).Elem(), 45 "Value": reflect.TypeOf((*q.Value)(nil)).Elem(), 46 }, 47 AliasTypes: map[string]reflect.Type{}, 48 Vars: map[string]reflect.Value{ 49 "IllegalPrefixes": reflect.ValueOf(&q.IllegalPrefixes), 50 }, 51 Funcs: map[string]reflect.Value{ 52 "Examples": reflect.ValueOf(q.Examples), 53 "IsPredeclared": reflect.ValueOf(q.IsPredeclared), 54 "New": reflect.ValueOf(q.New), 55 "NewFromFiles": reflect.ValueOf(q.NewFromFiles), 56 "Synopsis": reflect.ValueOf(q.Synopsis), 57 "ToHTML": reflect.ValueOf(q.ToHTML), 58 "ToText": reflect.ValueOf(q.ToText), 59 }, 60 TypedConsts: map[string]igop.TypedConst{ 61 "AllDecls": {reflect.TypeOf(q.AllDecls), constant.MakeInt64(int64(q.AllDecls))}, 62 "AllMethods": {reflect.TypeOf(q.AllMethods), constant.MakeInt64(int64(q.AllMethods))}, 63 "PreserveAST": {reflect.TypeOf(q.PreserveAST), constant.MakeInt64(int64(q.PreserveAST))}, 64 }, 65 UntypedConsts: map[string]igop.UntypedConst{}, 66 }) 67 }