refactor: first step to refactor the ui
This commit is contained in:
parent
a8ed9c9ed1
commit
9cae00d2a5
7 changed files with 330 additions and 158 deletions
10
internal/utils/utils.go
Normal file
10
internal/utils/utils.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package utils
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Hilfsfunktion (kann in einer utils.go Datei platziert werden)
|
||||
func formatDuration(totalSeconds int64) string {
|
||||
mins := totalSeconds / 60
|
||||
secs := totalSeconds % 60
|
||||
return fmt.Sprintf("%02d:%02d", mins, secs)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue