错误链中可能包含*PathError时,哪种errors.As用法正确?

来自错误处理
Go 1.27 进阶 1分钟

错误链中可能包含*PathError时,哪种errors.As用法正确?

报告错误