mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-12-25 14:28:58 +00:00
Fix tag
This commit is contained in:
parent
76393da54c
commit
8bb135d093
@ -13,7 +13,7 @@ go f() // create a new goroutine that calls f(); don't wait
|
||||
|
||||
下面的例子,main goroutine将计算菲波那契数列的第45个元素值。由于计算函数使用低效的递归,所以会运行相当长时间,在此期间我们想让用户看到一个可见的标识来表明程序依然在正常运行,所以来做一个动画的小图标:
|
||||
|
||||
<u><i>gopl.io/ch8/spinner</i><u>
|
||||
<u><i>gopl.io/ch8/spinner</i></u>
|
||||
```go
|
||||
func main() {
|
||||
go spinner(100 * time.Millisecond)
|
||||
|
Loading…
Reference in New Issue
Block a user