mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-07-04 04:45:46 +00: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], ""
|
||
|
}
|