- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Cook (0.14 sec)
-
istioctl/pkg/util/handlers/handlers.go
if idx := strings.LastIndex(name, "/"); idx > 0 { // If there is a / in it, we need to handle differently. This is resourcetype/name.namespace. // However, resourcetype can have . in it as well, so we should only look for namespace after the /. separator := strings.LastIndex(name[idx:], ".") if separator < 0 { return name, namespace } return name[0 : idx+separator], name[idx+separator+1:] }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 06 15:01:41 GMT 2024 - 6.2K bytes - Viewed (0)