SaveAs saves the buffer to a specified path (filename), creating the file if it does not exist
(filename string)
| 227 | |
| 228 | // SaveAs saves the buffer to a specified path (filename), creating the file if it does not exist |
| 229 | func (b *Buffer) SaveAs(filename string) error { |
| 230 | return b.saveToFile(filename, false, false) |
| 231 | } |
| 232 | |
| 233 | func (b *Buffer) SaveWithSudo() error { |
| 234 | return b.SaveAsWithSudo(b.Path) |