erris:林特(Linter)错误和错误

时间:2021-03-09 10:35:38
【文件属性】:
文件名称:erris:林特(Linter)错误和错误
文件大小:8KB
文件格式:ZIP
更新时间:2021-03-09 10:35:38
Go 埃里斯 erris是用于检查错误比较或使用go1.13类型断言的程序errors.Is和errors.As功能。 安装 go get -u github.com/romanyx/erris/cmd/erris 使用 对于基本用法,只需将感兴趣的包路径作为第一个参数: erris github.com/romanyx/erris/testdata 输出: github.com/romanyx/erris/testdata/main.go:14:5: use errors.Is to compare an error github.com/romanyx/erris/testdata/main_test.go:11:14: use errors.As to type assert an error 要检查当前目录下的所有软件包: erris ./...
【文件预览】:
erris-master
----go.mod(104B)
----go.sum(834B)
----erris.go(706B)
----.travis.yml(102B)
----internal()
--------visitor()
----LICENSE(1KB)
----README.md(850B)
----cmd()
--------erris()

网友评论