const ALIGN_RIGHT
XuAPI
pub const ALIGN_RIGHT = 4Purpose
Constant ALIGN_RIGHT, defining protocol or algorithm parameters.
#text/tabwriterElastic tabstops: write + flush returns a string.
const ALIGN_RIGHTpub const ALIGN_RIGHT = 4Constant ALIGN_RIGHT, defining protocol or algorithm parameters.
const DEBUGpub const DEBUG = 32Constant DEBUG, defining protocol or algorithm parameters.
struct Writerpub struct Writer {
pub minwidth int
pub tabwidth int
pub padding int
pub padchar int
pub flags int
pub raw string
}Tabwriter Streaming writer and encoder.
minwidth inttabwidth intpadding intpadchar intflags intraw stringstruct Cellpub struct Cell {
pub text string
pub width int
pub htab int
}Structure encapsulating text, width, htab.
text stringwidth inthtab intnew_writerpub fn new_writer(minwidth int, tabwidth int, padding int, padchar int, flags int) WriterConstruct writer.
minwidth inttabwidth intpadding intpadchar intflags intWriter — a value of this type
($&Writer) writepub fn (w $&Writer) write(s &string)Operation on $&Writer: write data and return the byte count.
w $&WriterWriter instance used by this call (exclusive borrow).s &stringThis call does not return a value.
($&Writer) flushpub fn (w $&Writer) flush() stringOperation on $&Writer: flush buffered data.
w $&WriterWriter instance used by this call (exclusive borrow).string — result string