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

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