MCPcopy Create free account
hub / github.com/OpenPrinting/goipp / onNL

Method onNL

formatter.go:199–202  ·  view source on GitHub ↗

onNL returns true if Formatter is at the beginning of new line.

()

Source from the content-addressed store, hash-verified

197
198// onNL returns true if Formatter is at the beginning of new line.
199func (f *Formatter) onNL() bool {
200 b := f.buf.Bytes()
201 return len(b) == 0 || b[len(b)-1] == '\n'
202}
203
204// forceNL inserts newline character if Formatter is not at the.
205// beginning of new line

Callers 2

fmtAttributeOrMemberMethod · 0.95
forceNLMethod · 0.95

Calls 1

BytesMethod · 0.80

Tested by

no test coverage detected