You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}
// AddLineF writes a line of text in the buffer.// The line to append is built calling `fmt.Sprintf`// with `lineFormat` and `arguments...`func (lines*Buffer) AddLineF(lineFormatstring, arguments...interface{}) {
line:=fmt.Sprintf(lineFormat, arguments...)
lines.AddLine(line)
}
// AddLine writes a line of text in the buffer.// A newline is appended at the end of the strigns// only if it's not already present.func (lines*Buffer) AddLine(linestring) {
lines.buf.WriteString(line)
// # TODO: check if newline is already present.lines.buf.WriteRune('\n')
}
673424fd12fd94348520b58125bf662e799d2bd8
The text was updated successfully, but these errors were encountered:
check if newline is already present.
lines/buffer.go
Line 41 in 034d8da
673424fd12fd94348520b58125bf662e799d2bd8
The text was updated successfully, but these errors were encountered: