Discover Packages
github.com/ldemailly/go-scratch
crwriter
package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Sep 15, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
CRWriter is a writer that adds \r before each \n.
Needed for raw mode terminals (and I guess also if you want something DOS or http headers like).
In case you want to ensure the memory used by the buffer is released.
Optimized to avoid many small writes by buffering and only writing \r when needed.
No extra syscall, relies on append() to efficiently reallocate the buffer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.