Repository Details
Shared by
HelloGitHub Rating
0 ratings
Free•MIT
Claim
Discuss
Collect
Share
7k
Stars
No
Chinese
Go
Language
No
Active
1
Contributors
26
Issues
No
Organization
None
Latest
351
Forks
MIT
License
More
一个封装好的 OS 三方库,解决了 Go 使用 OS 标准库错误处理的麻烦。如果没有它,打开一个文件查找一个关键字再统计下数量,你至少会需要 2-3 个异常处理的逻辑。有了它,只需要:
```go
numErrors, err := script.File("test.txt").Match("Error").CountLines()
// 等同于 grep Error test.txt | wc -l
```
Included in:
Vol.39
Comments
Rating:
No comments yet