11 lines
178 B
Go
11 lines
178 B
Go
|
package google
|
||
|
|
||
|
import (
|
||
|
"regexp"
|
||
|
)
|
||
|
|
||
|
func trimResourceName(name string) string {
|
||
|
re, _ := regexp.Compile(`^\/\/[\w]+.googleapis.com\/`)
|
||
|
return re.ReplaceAllString(name, "")
|
||
|
}
|