github.com/goplus/igop@v0.25.0/pkg/mime/go118_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.18 && !go1.19 4 // +build go1.18,!go1.19 5 6 package mime 7 8 import ( 9 q "mime" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "mime", 20 Path: "mime", 21 Deps: map[string]string{ 22 "bufio": "bufio", 23 "bytes": "bytes", 24 "encoding/base64": "base64", 25 "errors": "errors", 26 "fmt": "fmt", 27 "io": "io", 28 "os": "os", 29 "sort": "sort", 30 "strings": "strings", 31 "sync": "sync", 32 "unicode": "unicode", 33 "unicode/utf8": "utf8", 34 }, 35 Interfaces: map[string]reflect.Type{}, 36 NamedTypes: map[string]reflect.Type{ 37 "WordDecoder": reflect.TypeOf((*q.WordDecoder)(nil)).Elem(), 38 "WordEncoder": reflect.TypeOf((*q.WordEncoder)(nil)).Elem(), 39 }, 40 AliasTypes: map[string]reflect.Type{}, 41 Vars: map[string]reflect.Value{ 42 "ErrInvalidMediaParameter": reflect.ValueOf(&q.ErrInvalidMediaParameter), 43 }, 44 Funcs: map[string]reflect.Value{ 45 "AddExtensionType": reflect.ValueOf(q.AddExtensionType), 46 "ExtensionsByType": reflect.ValueOf(q.ExtensionsByType), 47 "FormatMediaType": reflect.ValueOf(q.FormatMediaType), 48 "ParseMediaType": reflect.ValueOf(q.ParseMediaType), 49 "TypeByExtension": reflect.ValueOf(q.TypeByExtension), 50 }, 51 TypedConsts: map[string]igop.TypedConst{ 52 "BEncoding": {reflect.TypeOf(q.BEncoding), constant.MakeInt64(int64(q.BEncoding))}, 53 "QEncoding": {reflect.TypeOf(q.QEncoding), constant.MakeInt64(int64(q.QEncoding))}, 54 }, 55 UntypedConsts: map[string]igop.UntypedConst{}, 56 }) 57 }