capitalizeFirst capitalizes the first letter of a string
(s string)
| 251 | |
| 252 | // capitalizeFirst capitalizes the first letter of a string |
| 253 | func capitalizeFirst(s string) string { |
| 254 | if s == "" { |
| 255 | return s |
| 256 | } |
| 257 | return strings.ToUpper(s[:1]) + s[1:] |
| 258 | } |
| 259 | |
| 260 | // getOwnerNodeId gets the node ID for the owner |
| 261 | func getOwnerNodeId(ctx context.Context, ownerType, owner string, verbose bool) (string, error) { |