mirror of
https://github.com/go-micro/go-micro.git
synced 2025-04-17 11:06:19 +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]
|
||
|
}
|