修正示例代码.

Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
chen.yang 2021-08-25 17:55:59 +08:00
parent 2b5ff66aa2
commit ac28aa5b3e
1 changed files with 5 additions and 7 deletions

View File

@ -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 其他函数