/
mime_multipart.go
51 lines (47 loc) · 1.73 KB
/
mime_multipart.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
// this file was generated by gomacro command: import _b "mime/multipart"
// DO NOT EDIT! Any change will be lost when the file is re-generated
package imports
import (
. "reflect"
multipart "mime/multipart"
)
// reflection: allow interpreted code to import "mime/multipart"
func init() {
Packages["mime/multipart"] = Package{
Name: "multipart",
Binds: map[string]Value{
"ErrMessageTooLarge": ValueOf(&multipart.ErrMessageTooLarge).Elem(),
"NewReader": ValueOf(multipart.NewReader),
"NewWriter": ValueOf(multipart.NewWriter),
}, Types: map[string]Type{
"File": TypeOf((*multipart.File)(nil)).Elem(),
"FileHeader": TypeOf((*multipart.FileHeader)(nil)).Elem(),
"Form": TypeOf((*multipart.Form)(nil)).Elem(),
"Part": TypeOf((*multipart.Part)(nil)).Elem(),
"Reader": TypeOf((*multipart.Reader)(nil)).Elem(),
"Writer": TypeOf((*multipart.Writer)(nil)).Elem(),
}, Proxies: map[string]Type{
"File": TypeOf((*P_mime_multipart_File)(nil)).Elem(),
},
}
}
// --------------- proxy for mime/multipart.File ---------------
type P_mime_multipart_File struct {
Object interface{}
Close_ func(interface{}) error
Read_ func(_proxy_obj_ interface{}, p []byte) (n int, err error)
ReadAt_ func(_proxy_obj_ interface{}, p []byte, off int64) (n int, err error)
Seek_ func(_proxy_obj_ interface{}, offset int64, whence int) (int64, error)
}
func (P *P_mime_multipart_File) Close() error {
return P.Close_(P.Object)
}
func (P *P_mime_multipart_File) Read(p []byte) (n int, err error) {
return P.Read_(P.Object, p)
}
func (P *P_mime_multipart_File) ReadAt(p []byte, off int64) (n int, err error) {
return P.ReadAt_(P.Object, p, off)
}
func (P *P_mime_multipart_File) Seek(offset int64, whence int) (int64, error) {
return P.Seek_(P.Object, offset, whence)
}