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