import (
"errors"
)
func TestOut(t *testing.T){
println( testError().Error())
}
func testError() error {
return errors.New("Error Message!")
}
Go 返回错误 error
最新推荐文章于 2024-05-28 21:38:50 发布
import (
"errors"
)
func TestOut(t *testing.T){
println( testError().Error())
}
func testError() error {
return errors.New("Error Message!")
}