github.com/goplus/igop@v0.25.0/pkg/encoding/xml/go120_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.20 && !go1.21 4 // +build go1.20,!go1.21 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 "runtime": "runtime", 30 "strconv": "strconv", 31 "strings": "strings", 32 "sync": "sync", 33 "unicode": "unicode", 34 "unicode/utf8": "utf8", 35 }, 36 Interfaces: map[string]reflect.Type{ 37 "Marshaler": reflect.TypeOf((*q.Marshaler)(nil)).Elem(), 38 "MarshalerAttr": reflect.TypeOf((*q.MarshalerAttr)(nil)).Elem(), 39 "Token": reflect.TypeOf((*q.Token)(nil)).Elem(), 40 "TokenReader": reflect.TypeOf((*q.TokenReader)(nil)).Elem(), 41 "Unmarshaler": reflect.TypeOf((*q.Unmarshaler)(nil)).Elem(), 42 "UnmarshalerAttr": reflect.TypeOf((*q.UnmarshalerAttr)(nil)).Elem(), 43 }, 44 NamedTypes: map[string]reflect.Type{ 45 "Attr": reflect.TypeOf((*q.Attr)(nil)).Elem(), 46 "CharData": reflect.TypeOf((*q.CharData)(nil)).Elem(), 47 "Comment": reflect.TypeOf((*q.Comment)(nil)).Elem(), 48 "Decoder": reflect.TypeOf((*q.Decoder)(nil)).Elem(), 49 "Directive": reflect.TypeOf((*q.Directive)(nil)).Elem(), 50 "Encoder": reflect.TypeOf((*q.Encoder)(nil)).Elem(), 51 "EndElement": reflect.TypeOf((*q.EndElement)(nil)).Elem(), 52 "Name": reflect.TypeOf((*q.Name)(nil)).Elem(), 53 "ProcInst": reflect.TypeOf((*q.ProcInst)(nil)).Elem(), 54 "StartElement": reflect.TypeOf((*q.StartElement)(nil)).Elem(), 55 "SyntaxError": reflect.TypeOf((*q.SyntaxError)(nil)).Elem(), 56 "TagPathError": reflect.TypeOf((*q.TagPathError)(nil)).Elem(), 57 "UnmarshalError": reflect.TypeOf((*q.UnmarshalError)(nil)).Elem(), 58 "UnsupportedTypeError": reflect.TypeOf((*q.UnsupportedTypeError)(nil)).Elem(), 59 }, 60 AliasTypes: map[string]reflect.Type{}, 61 Vars: map[string]reflect.Value{ 62 "HTMLAutoClose": reflect.ValueOf(&q.HTMLAutoClose), 63 "HTMLEntity": reflect.ValueOf(&q.HTMLEntity), 64 }, 65 Funcs: map[string]reflect.Value{ 66 "CopyToken": reflect.ValueOf(q.CopyToken), 67 "Escape": reflect.ValueOf(q.Escape), 68 "EscapeText": reflect.ValueOf(q.EscapeText), 69 "Marshal": reflect.ValueOf(q.Marshal), 70 "MarshalIndent": reflect.ValueOf(q.MarshalIndent), 71 "NewDecoder": reflect.ValueOf(q.NewDecoder), 72 "NewEncoder": reflect.ValueOf(q.NewEncoder), 73 "NewTokenDecoder": reflect.ValueOf(q.NewTokenDecoder), 74 "Unmarshal": reflect.ValueOf(q.Unmarshal), 75 }, 76 TypedConsts: map[string]igop.TypedConst{}, 77 UntypedConsts: map[string]igop.UntypedConst{ 78 "Header": {"untyped string", constant.MakeString(string(q.Header))}, 79 }, 80 }) 81 }