aboutsummaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-08-27 11:23:39 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-08-27 11:23:39 +0200
commitbf6560bb2007581892932a367f4319f2f2a01919 (patch)
treee25324d3ba5225e8abca83a57c2af10c64c10cda /utils.go
parent4c823f57959a5d821a9f00d8e8c7f57c08ac2ded (diff)
Make old project runnable on Go 1.27 with mise and READMEHEADmaster
- init go.mod (Go 1.27, progressbar/v3 v3.19.1) and fix import - fix FMin returning max, remove deprecated RenderBlank, apply go fix range loops - add mise.toml (go 1.27, tasks: build/run/check with go fix -diff/clean) - add focused README and update .gitignore for build artifacts
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.go b/utils.go
index a0d0e7c..a6c5619 100644
--- a/utils.go
+++ b/utils.go
@@ -4,7 +4,7 @@ import "math"
// FMin return mins of floats
func FMin(a float64, b float64) float64 {
- if a >= b {
+ if a < b {
return a
}
return b