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