mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-06-30 19:10:55 +00:00
* 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
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], ""
|
|
}
|