Mime returns the MIME type for the image type.
()
| 19 | |
| 20 | // Mime returns the MIME type for the image type. |
| 21 | func (t Type) Mime() string { |
| 22 | desc := GetTypeDesc(t) |
| 23 | if desc != nil { |
| 24 | return desc.Mime |
| 25 | } |
| 26 | |
| 27 | return "application/octet-stream" |
| 28 | } |
| 29 | |
| 30 | // String returns the string representation of the image type. |
| 31 | func (t Type) String() string { |
no test coverage detected