github.com/goplus/igop@v0.25.0/pkg/go/doc/comment/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 comment
     7  
     8  import (
     9  	q "go/doc/comment"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "comment",
    19  		Path: "go/doc/comment",
    20  		Deps: map[string]string{
    21  			"bytes":        "bytes",
    22  			"fmt":          "fmt",
    23  			"sort":         "sort",
    24  			"strconv":      "strconv",
    25  			"strings":      "strings",
    26  			"unicode":      "unicode",
    27  			"unicode/utf8": "utf8",
    28  		},
    29  		Interfaces: map[string]reflect.Type{
    30  			"Block": reflect.TypeOf((*q.Block)(nil)).Elem(),
    31  			"Text":  reflect.TypeOf((*q.Text)(nil)).Elem(),
    32  		},
    33  		NamedTypes: map[string]reflect.Type{
    34  			"Code":      reflect.TypeOf((*q.Code)(nil)).Elem(),
    35  			"Doc":       reflect.TypeOf((*q.Doc)(nil)).Elem(),
    36  			"DocLink":   reflect.TypeOf((*q.DocLink)(nil)).Elem(),
    37  			"Heading":   reflect.TypeOf((*q.Heading)(nil)).Elem(),
    38  			"Italic":    reflect.TypeOf((*q.Italic)(nil)).Elem(),
    39  			"Link":      reflect.TypeOf((*q.Link)(nil)).Elem(),
    40  			"LinkDef":   reflect.TypeOf((*q.LinkDef)(nil)).Elem(),
    41  			"List":      reflect.TypeOf((*q.List)(nil)).Elem(),
    42  			"ListItem":  reflect.TypeOf((*q.ListItem)(nil)).Elem(),
    43  			"Paragraph": reflect.TypeOf((*q.Paragraph)(nil)).Elem(),
    44  			"Parser":    reflect.TypeOf((*q.Parser)(nil)).Elem(),
    45  			"Plain":     reflect.TypeOf((*q.Plain)(nil)).Elem(),
    46  			"Printer":   reflect.TypeOf((*q.Printer)(nil)).Elem(),
    47  		},
    48  		AliasTypes: map[string]reflect.Type{},
    49  		Vars:       map[string]reflect.Value{},
    50  		Funcs: map[string]reflect.Value{
    51  			"DefaultLookupPackage": reflect.ValueOf(q.DefaultLookupPackage),
    52  		},
    53  		TypedConsts:   map[string]igop.TypedConst{},
    54  		UntypedConsts: map[string]igop.UntypedConst{},
    55  	})
    56  }