mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2024-12-24 22:08:57 +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