mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-11-24 07:14:47 +00:00
commit
f32e613610
@ -2,7 +2,7 @@
|
||||
|
||||
在本章,我们会学到另一个标准的接口类型flag.Value是怎么帮助命令行标记定义新的符号的。思考下面这个会休眠特定时间的程序:
|
||||
|
||||
<u></i>gopl.io/ch7/sleep</i></u>
|
||||
<u><i>gopl.io/ch7/sleep</i></u>
|
||||
```go
|
||||
var period = flag.Duration("period", 1*time.Second, "sleep period")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user