Puts formats a message and then prints to Stdout. It does not prefix the message, does not color it, or otherwise decorate it. It does add a line feed.
(msg string, args ...interface{})
| 201 | // |
| 202 | // It does add a line feed. |
| 203 | func (m *Messenger) Puts(msg string, args ...interface{}) { |
| 204 | // When operations in Glide are happening concurrently messaging needs to be |
| 205 | // locked to avoid displaying one message in the middle of another one. |
| 206 | m.Lock() |
| 207 | defer m.Unlock() |
| 208 | |
| 209 | fmt.Fprintf(m.Stdout, msg, args...) |
| 210 | fmt.Fprintln(m.Stdout) |
| 211 | } |
| 212 | |
| 213 | // Puts formats a message and then prints to Stdout using the Default Messenger. |
| 214 | // |