mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-12 08:23:58 +02:00
14 lines
157 B
Go
14 lines
157 B
Go
package url
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func format(ct string) string {
|
|
parts := strings.Split(ct, "/")
|
|
if len(parts) <= 1 {
|
|
return ct
|
|
}
|
|
return parts[1]
|
|
}
|