String formats the commands as a single string by joining them with newlines.
()
| 116 | |
| 117 | // String formats the commands as a single string by joining them with newlines. |
| 118 | func (s *Commands) String() string { |
| 119 | if s == nil { |
| 120 | return "" |
| 121 | } |
| 122 | return strings.Join(s.Cmds, "\n") |
| 123 | } |
no outgoing calls