Debian Codegraph @

types/split.go

raw symbols SCIP
1 package types
2
3 import "strings"
4
5 func splitMime(s string) (string, string) {
6 x := strings.Split(s, "/")
7 if len(x) > 1 {
8 return x[0], x[1]
9 }
10 return x[0], ""
11 }