github.com/goplus/igop@v0.25.0/pkg/go/doc/go120_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.20 && !go1.21
     4  // +build go1.20,!go1.21
     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  			"fmt":                 "fmt",
    23  			"go/ast":              "ast",
    24  			"go/doc/comment":      "comment",
    25  			"go/token":            "token",
    26  			"internal/lazyregexp": "lazyregexp",
    27  			"io":                  "io",
    28  			"path":                "path",
    29  			"sort":                "sort",
    30  			"strconv":             "strconv",
    31  			"strings":             "strings",
    32  			"unicode":             "unicode",
    33  			"unicode/utf8":        "utf8",
    34  		},
    35  		Interfaces: map[string]reflect.Type{},
    36  		NamedTypes: map[string]reflect.Type{
    37  			"Example": reflect.TypeOf((*q.Example)(nil)).Elem(),
    38  			"Filter":  reflect.TypeOf((*q.Filter)(nil)).Elem(),
    39  			"Func":    reflect.TypeOf((*q.Func)(nil)).Elem(),
    40  			"Mode":    reflect.TypeOf((*q.Mode)(nil)).Elem(),
    41  			"Note":    reflect.TypeOf((*q.Note)(nil)).Elem(),
    42  			"Package": reflect.TypeOf((*q.Package)(nil)).Elem(),
    43  			"Type":    reflect.TypeOf((*q.Type)(nil)).Elem(),
    44  			"Value":   reflect.TypeOf((*q.Value)(nil)).Elem(),
    45  		},
    46  		AliasTypes: map[string]reflect.Type{},
    47  		Vars: map[string]reflect.Value{
    48  			"IllegalPrefixes": reflect.ValueOf(&q.IllegalPrefixes),
    49  		},
    50  		Funcs: map[string]reflect.Value{
    51  			"Examples":      reflect.ValueOf(q.Examples),
    52  			"IsPredeclared": reflect.ValueOf(q.IsPredeclared),
    53  			"New":           reflect.ValueOf(q.New),
    54  			"NewFromFiles":  reflect.ValueOf(q.NewFromFiles),
    55  			"Synopsis":      reflect.ValueOf(q.Synopsis),
    56  			"ToHTML":        reflect.ValueOf(q.ToHTML),
    57  			"ToText":        reflect.ValueOf(q.ToText),
    58  		},
    59  		TypedConsts: map[string]igop.TypedConst{
    60  			"AllDecls":    {reflect.TypeOf(q.AllDecls), constant.MakeInt64(int64(q.AllDecls))},
    61  			"AllMethods":  {reflect.TypeOf(q.AllMethods), constant.MakeInt64(int64(q.AllMethods))},
    62  			"PreserveAST": {reflect.TypeOf(q.PreserveAST), constant.MakeInt64(int64(q.PreserveAST))},
    63  		},
    64  		UntypedConsts: map[string]igop.UntypedConst{},
    65  	})
    66  }