github.com/goplus/gossa@v0.3.25/pkg/encoding/xml/go118_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package xml 7 8 import ( 9 q "encoding/xml" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.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]gossa.NamedType{ 44 "Attr": {reflect.TypeOf((*q.Attr)(nil)).Elem(), "", ""}, 45 "CharData": {reflect.TypeOf((*q.CharData)(nil)).Elem(), "Copy", ""}, 46 "Comment": {reflect.TypeOf((*q.Comment)(nil)).Elem(), "Copy", ""}, 47 "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"}, 48 "Directive": {reflect.TypeOf((*q.Directive)(nil)).Elem(), "Copy", ""}, 49 "Encoder": {reflect.TypeOf((*q.Encoder)(nil)).Elem(), "", "Encode,EncodeElement,EncodeToken,Flush,Indent"}, 50 "EndElement": {reflect.TypeOf((*q.EndElement)(nil)).Elem(), "", ""}, 51 "Name": {reflect.TypeOf((*q.Name)(nil)).Elem(), "", ""}, 52 "ProcInst": {reflect.TypeOf((*q.ProcInst)(nil)).Elem(), "Copy", ""}, 53 "StartElement": {reflect.TypeOf((*q.StartElement)(nil)).Elem(), "Copy,End", ""}, 54 "SyntaxError": {reflect.TypeOf((*q.SyntaxError)(nil)).Elem(), "", "Error"}, 55 "TagPathError": {reflect.TypeOf((*q.TagPathError)(nil)).Elem(), "", "Error"}, 56 "UnmarshalError": {reflect.TypeOf((*q.UnmarshalError)(nil)).Elem(), "Error", ""}, 57 "UnsupportedTypeError": {reflect.TypeOf((*q.UnsupportedTypeError)(nil)).Elem(), "", "Error"}, 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]gossa.TypedConst{}, 76 UntypedConsts: map[string]gossa.UntypedConst{ 77 "Header": {"untyped string", constant.MakeString(string(q.Header))}, 78 }, 79 }) 80 }