mirror of
https://github.com/h2non/filetype.git
synced 2025-12-24 11:52:08 +08:00
12 lines
164 B
Go
12 lines
164 B
Go
package types
|
|
|
|
import "strings"
|
|
|
|
func splitMime(s string) (string, string) {
|
|
x := strings.Split(s, "/")
|
|
if len(x) > 1 {
|
|
return x[0], x[1]
|
|
}
|
|
return x[0], ""
|
|
}
|