mfridman / tparse

CLI tool for summarizing go test output. Pipe friendly. CI/CD friendly.
MIT License
948 stars 22 forks source link

Upgrade code to respect new conventions. #111

Closed ccoVeille closed 2 months ago

ccoVeille commented 2 months ago

go.mod refers to 1.17, so we can use os.ReadFile and os.WriteFile instead of ioutil.ReadFile and ioutil.WriteFile that are now deprecated.

We should use errors.As since go 1.13 otherwise any wrapped errors won't be caught.