mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-09-09 05:08:27 +00:00
98263a7de6
* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig
14 lines
278 B
Go
14 lines
278 B
Go
package types
|
|
|
|
// MIME stores the file MIME type values
|
|
type MIME struct {
|
|
Type string
|
|
Subtype string
|
|
Value string
|
|
}
|
|
|
|
// Creates a new MIME type
|
|
func NewMIME(mime string) MIME {
|
|
kind, subtype := splitMime(mime)
|
|
return MIME{Type: kind, Subtype: subtype, Value: mime}
|
|
}
|