jjzjj

go - var _ xerrors.Formatter =包装{}

Thisquestionalreadyhasanswershere:Whatdoesthisgolangcodedo?[duplicate](2个答案)去年关闭。https://github.com/golang/xerrors/blob/master/fmt_test.go#L379var_xerrors.Formatter=wrapped{}var_xerrors.Formatter=detailed{}这两条线的目的是什么? 最佳答案 https://github.com/golang/xerrors该存储库包含新Go1.13