This commit is contained in:
2018-11-04 15:58:15 +01:00
commit f956bcee28
1178 changed files with 584552 additions and 0 deletions

18
vendor/github.com/anacrolix/missinggo/mime/mime.go generated vendored Normal file
View File

@@ -0,0 +1,18 @@
package mime
import "strings"
type Type struct {
Class string
Specific string
}
func (t Type) String() string {
return t.Class + "/" + t.Specific
}
func (t *Type) FromString(s string) {
ss := strings.SplitN(s, "/", 1)
t.Class = ss[0]
t.Specific = ss[1]
}