@@ -25,7 +25,6 @@ go generate
25
25
```
26
26
27
27
``` golang
28
-
29
28
// Code generated by "pkgimport -p mime -i mime -o mime.go"; DO NOT EDIT.
30
29
// Install by "go get -u -v github.com/wzshiming/gotype/cmd/pkgimport";
31
30
// go:generate pkgimport -p mime -i mime -o mime.go
@@ -36,6 +35,21 @@ import (
36
35
origin " mime"
37
36
)
38
37
38
+ // Value
39
+ var (
40
+
41
+ // QEncoding represents the Q-encoding scheme as defined by RFC 2047.
42
+ QEncoding = origin.QEncoding
43
+
44
+ // ErrInvalidMediaParameter is returned by ParseMediaType if
45
+ // the media type value was found but there was an error parsing
46
+ // the optional parameters
47
+ ErrInvalidMediaParameter = origin.ErrInvalidMediaParameter
48
+
49
+ // BEncoding represents Base64 encoding scheme as defined by RFC 2045.
50
+ BEncoding = origin.BEncoding
51
+ )
52
+
39
53
// Type
40
54
type (
41
55
46
60
WordDecoder = origin.WordDecoder
47
61
)
48
62
49
- // Declaration
63
+ // Function
50
64
var (
51
65
52
66
// TypeByExtension returns the MIME type associated with the file extension ext.
68
82
// Text types have the charset parameter set to "utf-8" by default.
69
83
TypeByExtension = origin.TypeByExtension
70
84
71
- // QEncoding represents the Q-encoding scheme as defined by RFC 2047.
72
- QEncoding = origin.QEncoding
73
-
74
85
// ParseMediaType parses a media type value and any optional
75
86
// parameters, per RFC 1521. Media types are the values in
76
87
// Content-Type and Content-Disposition headers (RFC 2183).
@@ -96,20 +107,11 @@ var (
96
107
// nil slice.
97
108
ExtensionsByType = origin.ExtensionsByType
98
109
99
- // ErrInvalidMediaParameter is returned by ParseMediaType if
100
- // the media type value was found but there was an error parsing
101
- // the optional parameters
102
- ErrInvalidMediaParameter = origin.ErrInvalidMediaParameter
103
-
104
- // BEncoding represents Base64 encoding scheme as defined by RFC 2045.
105
- BEncoding = origin.BEncoding
106
-
107
110
// AddExtensionType sets the MIME type associated with
108
111
// the extension ext to typ. The extension should begin with
109
112
// a leading dot, as in ".html".
110
113
AddExtensionType = origin.AddExtensionType
111
114
)
112
-
113
115
```
114
116
115
117
## License
0 commit comments