1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-12 08:23:58 +02:00
go-micro/plugins/config/source/url/format.go
2020-12-26 15:32:45 +00:00

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]
}