ToStringPtr converts a string to a *string pointer. Returns nil if the string is empty.
(s string)
| 343 | // ToStringPtr converts a string to a *string pointer. |
| 344 | // Returns nil if the string is empty. |
| 345 | func ToStringPtr(s string) *string { |
| 346 | if s == "" { |
| 347 | return nil |
| 348 | } |
| 349 | return &s |
| 350 | } |
| 351 | |
| 352 | // GenerateToolsetsHelp generates the help text for the toolsets flag |
| 353 | func GenerateToolsetsHelp() string { |
no outgoing calls
no test coverage detected