1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-04-17 11:06:19 +02:00

14 lines
157 B
Go
Raw Normal View History

2020-12-26 15:32:45 +00:00
package url
import (
"strings"
)
func format(ct string) string {
parts := strings.Split(ct, "/")
if len(parts) <= 1 {
return ct
}
return parts[1]
}