修正示例代码.
Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
parent
2b5ff66aa2
commit
ac28aa5b3e
|
@ -99,17 +99,15 @@ import (
|
|||
"fmt"
|
||||
)
|
||||
|
||||
func init(){
|
||||
flag.Usage = usage
|
||||
flag.Parse()
|
||||
}
|
||||
|
||||
func usage(){
|
||||
fmt.Print("nginx version v1.12")
|
||||
fmt.Println("nginx version v1.12")
|
||||
flag.PrintDefaults()
|
||||
}
|
||||
|
||||
func main(){}
|
||||
func main(){
|
||||
flag.Usage = usage
|
||||
flag.Parse()
|
||||
}
|
||||
```
|
||||
|
||||
### 3.5.flag 其他函数
|
||||
|
|
Loading…
Reference in New Issue