MCPcopy Index your code
hub / github.com/go-errors/errors / ExampleIs

Function ExampleIs

error_test.go:234–239  ·  view source on GitHub ↗
(reader io.Reader, buff []byte)

Source from the content-addressed store, hash-verified

232}
233
234func ExampleIs(reader io.Reader, buff []byte) {
235 _, err := reader.Read(buff)
236 if Is(err, io.EOF) {
237 return
238 }
239}
240
241func ExampleNew(UnexpectedEOF error) error {
242 // calling New attaches the current stacktrace to the existing UnexpectedEOF error

Callers

nothing calls this directly

Calls 1

IsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…