Skip to content

Commit

Permalink
Add link to gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Sep 19, 2024
1 parent c7f9f39 commit 03938f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ Safecast allows you to safely convert between numeric types in Go and return err
See https://pkg.go.dev/fortio.org/safecast for docs and example.
This is usable from any go with generics (1.18 or later) though our CI uses the latest go.

`safecast` is about avoiding [gosec G115](https://github.com/securego/gosec#available-rules) class of overflow and loss of precision bugs, extended to float64/float32 issues.

Credit for the idea (and a finding a bug in the first implementation) goes to [@ccoVeille](https://github.com/ccoVeille), Please see https://github.com/ccoVeille/go-safecast for an different style API and implementation to pick whichever fits your style best.

0 comments on commit 03938f0

Please sign in to comment.