go

如何在Golang中测试panic?

英文: How to test a panic in Golang? 问题 问题:当我传递垃圾 JSON 文件时,它似乎会发生 panic,并且不执行任何 So 语句。如何修复这个问题? 翻译结果: ...