go/doc/next/6-stdlib/99-minor/testing/fstest/63675.md

225 B

TestFS now returns a structured error that can be unwrapped (via method Unwrap() []error). This allows inspecting errors using errors.Is or errors.As.