driftctl/enumeration/remote/google/util.go

11 lines
178 B
Go
Raw Normal View History

package google
import (
2021-09-20 14:52:48 +00:00
"regexp"
)
func trimResourceName(name string) string {
2021-09-20 14:52:48 +00:00
re, _ := regexp.Compile(`^\/\/[\w]+.googleapis.com\/`)
return re.ReplaceAllString(name, "")
}