feat(v2)!: update to go 1.22 (#724)

* feat(v2)!: update to go 1.22

* fix: ci

* fix: more
This commit is contained in:
Carlos Alexandro Becker
2025-02-05 10:00:01 -03:00
committed by GitHub
parent a7783a1a58
commit 64c16e990e
13 changed files with 12 additions and 104 deletions
-14
View File
@@ -345,22 +345,8 @@ func (m *Model) setRamp(colorA, colorB string, scaled bool) {
m.rampColorB = b
}
func max(a, b int) int {
if a > b {
return a
}
return b
}
// IsAnimating returns false if the progress bar reached equilibrium and is no longer animating.
func (m *Model) IsAnimating() bool {
dist := math.Abs(m.percentShown - m.targetPercent)
return !(dist < 0.001 && m.velocity < 0.01)
}
func min(a, b int) int {
if a < b {
return a
}
return b
}