(f *os.File, args []interface{})
| 84 | } |
| 85 | |
| 86 | func (ui *stdUI) fprint(f *os.File, args []interface{}) { |
| 87 | text := fmt.Sprint(args...) |
| 88 | if !strings.HasSuffix(text, "\n") { |
| 89 | text += "\n" |
| 90 | } |
| 91 | f.WriteString(text) |
| 92 | } |
| 93 | |
| 94 | // oswriter implements the Writer interface using a regular file. |
| 95 | type oswriter struct{} |