Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Command = &cli.Command{ Name: "localhost", Usage: "host 文件操作", Aliases: []string{"l"}, Flags: []cli.Flag{ &cli.StringFlag{ Name: "domain", Aliases: []string{"d"}, Usage: "域名", Required: true, Action: func(context *cli.Context, s string) error { _, err := url.Parse(s) if err != nil { return errors.New(fmt.Sprintf("domain %s 解析失败,请重新输入", s)) } return nil }, }, }, Action: Action, } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.