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

Method Print

message.go:266–276  ·  view source on GitHub ↗

Print pretty-prints the message. The 'request' parameter affects interpretation of Message.Code: it is interpreted either as [Op] or as [Status]. Deprecated. Use [Formatter] instead.

(out io.Writer, request bool)

Source from the content-addressed store, hash-verified

264//
265// Deprecated. Use [Formatter] instead.
266func (m *Message) Print(out io.Writer, request bool) {
267 f := Formatter{}
268
269 if request {
270 f.FmtRequest(m)
271 } else {
272 f.FmtResponse(m)
273 }
274
275 f.WriteTo(out)
276}
277
278// AttrGroups returns [Message] attributes as a sequence of
279// attribute groups.

Callers 3

TestMessagePrintFunction · 0.95
testDecodeFunction · 0.95
TestMessageEqualSimilarFunction · 0.80

Calls 3

FmtRequestMethod · 0.95
FmtResponseMethod · 0.95
WriteToMethod · 0.95

Tested by 3

TestMessagePrintFunction · 0.76
testDecodeFunction · 0.76
TestMessageEqualSimilarFunction · 0.64