first commit

This commit is contained in:
Drew Weymouth
2022-12-17 16:52:13 -08:00
parent cd1f795bb4
commit c21d7d03eb
16 changed files with 2069 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
package ui
import "fmt"
func SecondsToTimeString(s float64) string {
if s < 0 {
s = 0
}
min := int(s / 60)
sec := int(s - float64(min*60))
return fmt.Sprintf("%2d:%02d", min, sec)
}