MCPcopy
hub / github.com/tinylib/msgp / arrayCheck

Method arrayCheck

gen/spec.go:476–478  ·  view source on GitHub ↗
(want string, got string)

Source from the content-addressed store, hash-verified

474}
475
476func (p *printer) arrayCheck(want string, got string) {
477 p.printf("\nif %[1]s != %[2]s { err = msgp.ArrayError{Wanted: %[2]s, Got: %[1]s}; return }", got, want)
478}
479
480func (p *printer) closeblock() { p.print("\n}") }
481

Callers 4

tupleMethod · 0.80
gArrayMethod · 0.80
structAsTupleMethod · 0.80
gArrayMethod · 0.80

Calls 1

printfMethod · 0.95

Tested by

no test coverage detected