github.com/goplus/igop@v0.25.0/pkg/encoding/xml/go119_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.19 && !go1.20
     4  // +build go1.19,!go1.20
     5  
     6  package xml
     7  
     8  import (
     9  	q "encoding/xml"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.Package{
    19  		Name: "xml",
    20  		Path: "encoding/xml",
    21  		Deps: map[string]string{
    22  			"bufio":        "bufio",
    23  			"bytes":        "bytes",
    24  			"encoding":     "encoding",
    25  			"errors":       "errors",
    26  			"fmt":          "fmt",
    27  			"io":           "io",
    28  			"reflect":      "reflect",
    29  			"strconv":      "strconv",
    30  			"strings":      "strings",
    31  			"sync":         "sync",
    32  			"unicode":      "unicode",
    33  			"unicode/utf8": "utf8",
    34  		},
    35  		Interfaces: map[string]reflect.Type{
    36  			"Marshaler":       reflect.TypeOf((*q.Marshaler)(nil)).Elem(),
    37  			"MarshalerAttr":   reflect.TypeOf((*q.MarshalerAttr)(nil)).Elem(),
    38  			"Token":           reflect.TypeOf((*q.Token)(nil)).Elem(),
    39  			"TokenReader":     reflect.TypeOf((*q.TokenReader)(nil)).Elem(),
    40  			"Unmarshaler":     reflect.TypeOf((*q.Unmarshaler)(nil)).Elem(),
    41  			"UnmarshalerAttr": reflect.TypeOf((*q.UnmarshalerAttr)(nil)).Elem(),
    42  		},
    43  		NamedTypes: map[string]reflect.Type{
    44  			"Attr":                 reflect.TypeOf((*q.Attr)(nil)).Elem(),
    45  			"CharData":             reflect.TypeOf((*q.CharData)(nil)).Elem(),
    46  			"Comment":              reflect.TypeOf((*q.Comment)(nil)).Elem(),
    47  			"Decoder":              reflect.TypeOf((*q.Decoder)(nil)).Elem(),
    48  			"Directive":            reflect.TypeOf((*q.Directive)(nil)).Elem(),
    49  			"Encoder":              reflect.TypeOf((*q.Encoder)(nil)).Elem(),
    50  			"EndElement":           reflect.TypeOf((*q.EndElement)(nil)).Elem(),
    51  			"Name":                 reflect.TypeOf((*q.Name)(nil)).Elem(),
    52  			"ProcInst":             reflect.TypeOf((*q.ProcInst)(nil)).Elem(),
    53  			"StartElement":         reflect.TypeOf((*q.StartElement)(nil)).Elem(),
    54  			"SyntaxError":          reflect.TypeOf((*q.SyntaxError)(nil)).Elem(),
    55  			"TagPathError":         reflect.TypeOf((*q.TagPathError)(nil)).Elem(),
    56  			"UnmarshalError":       reflect.TypeOf((*q.UnmarshalError)(nil)).Elem(),
    57  			"UnsupportedTypeError": reflect.TypeOf((*q.UnsupportedTypeError)(nil)).Elem(),
    58  		},
    59  		AliasTypes: map[string]reflect.Type{},
    60  		Vars: map[string]reflect.Value{
    61  			"HTMLAutoClose": reflect.ValueOf(&q.HTMLAutoClose),
    62  			"HTMLEntity":    reflect.ValueOf(&q.HTMLEntity),
    63  		},
    64  		Funcs: map[string]reflect.Value{
    65  			"CopyToken":       reflect.ValueOf(q.CopyToken),
    66  			"Escape":          reflect.ValueOf(q.Escape),
    67  			"EscapeText":      reflect.ValueOf(q.EscapeText),
    68  			"Marshal":         reflect.ValueOf(q.Marshal),
    69  			"MarshalIndent":   reflect.ValueOf(q.MarshalIndent),
    70  			"NewDecoder":      reflect.ValueOf(q.NewDecoder),
    71  			"NewEncoder":      reflect.ValueOf(q.NewEncoder),
    72  			"NewTokenDecoder": reflect.ValueOf(q.NewTokenDecoder),
    73  			"Unmarshal":       reflect.ValueOf(q.Unmarshal),
    74  		},
    75  		TypedConsts: map[string]igop.TypedConst{},
    76  		UntypedConsts: map[string]igop.UntypedConst{
    77  			"Header": {"untyped string", constant.MakeString(string(q.Header))},
    78  		},
    79  	})
    80  }