github.com/goplus/gossa@v0.3.25/pkg/encoding/xml/go115_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package xml
     6  
     7  import (
     8  	q "encoding/xml"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.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]gossa.NamedType{
    43  			"Attr":                 {reflect.TypeOf((*q.Attr)(nil)).Elem(), "", ""},
    44  			"CharData":             {reflect.TypeOf((*q.CharData)(nil)).Elem(), "Copy", ""},
    45  			"Comment":              {reflect.TypeOf((*q.Comment)(nil)).Elem(), "Copy", ""},
    46  			"Decoder":              {reflect.TypeOf((*q.Decoder)(nil)).Elem(), "", "Decode,DecodeElement,InputOffset,RawToken,Skip,Token,attrval,autoClose,getc,mustgetc,name,nsname,pop,popEOF,popElement,push,pushEOF,pushElement,pushNs,rawToken,readName,savedOffset,space,switchToReader,syntaxError,text,translate,ungetc,unmarshal,unmarshalAttr,unmarshalInterface,unmarshalPath,unmarshalTextInterface"},
    47  			"Directive":            {reflect.TypeOf((*q.Directive)(nil)).Elem(), "Copy", ""},
    48  			"Encoder":              {reflect.TypeOf((*q.Encoder)(nil)).Elem(), "", "Encode,EncodeElement,EncodeToken,Flush,Indent"},
    49  			"EndElement":           {reflect.TypeOf((*q.EndElement)(nil)).Elem(), "", ""},
    50  			"Name":                 {reflect.TypeOf((*q.Name)(nil)).Elem(), "", ""},
    51  			"ProcInst":             {reflect.TypeOf((*q.ProcInst)(nil)).Elem(), "Copy", ""},
    52  			"StartElement":         {reflect.TypeOf((*q.StartElement)(nil)).Elem(), "Copy,End", ""},
    53  			"SyntaxError":          {reflect.TypeOf((*q.SyntaxError)(nil)).Elem(), "", "Error"},
    54  			"TagPathError":         {reflect.TypeOf((*q.TagPathError)(nil)).Elem(), "", "Error"},
    55  			"UnmarshalError":       {reflect.TypeOf((*q.UnmarshalError)(nil)).Elem(), "Error", ""},
    56  			"UnsupportedTypeError": {reflect.TypeOf((*q.UnsupportedTypeError)(nil)).Elem(), "", "Error"},
    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]gossa.TypedConst{},
    75  		UntypedConsts: map[string]gossa.UntypedConst{
    76  			"Header": {"untyped string", constant.MakeString(string(q.Header))},
    77  		},
    78  	})
    79  }