File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func main() {
4242
4343 for i := 0 ; i < 20 ; i++ {
4444 limiter.Go (func () {
45- fmt.Println (" limiter --> " , time.Now ())
45+ fmt.Printf (" limiter --> %s \n " , time.Now ())
4646 time.Sleep (time.Second )
4747 })
4848 }
@@ -55,7 +55,7 @@ func main() {
5555
5656 for i := 0 ; i < 20 ; i++ {
5757 executor.Submit (func () {
58- fmt.Println (" executor --> " , time.Now ())
58+ fmt.Printf (" executor --> %s \n " , time.Now ())
5959 time.Sleep (time.Second )
6060 })
6161 }
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func main() {
4242
4343 for i := 0 ; i < 20 ; i++ {
4444 limiter.Go (func () {
45- fmt.Println (" limiter --> " , time.Now ())
45+ fmt.Printf (" limiter --> %s \n " , time.Now ())
4646 time.Sleep (time.Second )
4747 })
4848 }
@@ -55,7 +55,7 @@ func main() {
5555
5656 for i := 0 ; i < 20 ; i++ {
5757 executor.Submit (func () {
58- fmt.Println (" executor --> " , time.Now ())
58+ fmt.Printf (" executor --> %s \n " , time.Now ())
5959 time.Sleep (time.Second )
6060 })
6161 }
You can’t perform that action at this time.
0 commit comments