自定义error 类型
摘要:
package main import ( "errors" "fmt" ) type errorCreateVolume struct { s string } func NewErrorCreateVolume(text string) error { return errorCreateVol 阅读全文
posted @ 2024-04-25 14:18 running-fly 阅读(3) 评论(0) 推荐(0) 编辑