golang-exercises/loading-bar/main.go

15 lines
179 B
Go

package main
import (
"fmt"
"time"
)
func main() {
for i := 0; i < 101; i++ {
fmt.Printf("\rLoading... %v%%", i)
time.Sleep(50 * time.Millisecond)
}
fmt.Printf("\n")
}