Documentation ¶ Index ¶ func SafeSplit(fieldPath string) []string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SafeSplit ¶ func SafeSplit(fieldPath string) []string SafeSplit breaks a regular "a.b.c" path to the string slice ["a", "b", "c"] but if the final part is in square brackets, like "metadata.labels[cattleprod.io/moo]", it returns ["metadata", "labels", "cattleprod.io/moo"] Types ¶ This section is empty. Source Files ¶ View all Source files safesplit.go Click to show internal directories. Click to hide internal directories.