1 Star 0 Fork 0

sy_183 / go-common

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
exist.go 220 Bytes
一键复制 编辑 原始数据 按行查看 历史
package errors
import "fmt"
type Exist struct {
Target string
}
func NewExist(target string) Exist {
return Exist{Target: target}
}
func (e Exist) Error() string {
return fmt.Sprintf("%s已经存在", e.Target)
}
1
https://gitee.com/sy_183/go-common.git
git@gitee.com:sy_183/go-common.git
sy_183
go-common
go-common
v1.0.4

搜索帮助