Documentation ¶
Index ¶
- type Command
- func (obj *Command) Exec(commName string, arg ...string) (string, error)
- func (obj *Command) ExecGrep(commName string, arg ...string) (string, error)
- func (obj *Command) ExecPipe(commName string, arg ...string) error
- func (*Command) FlagBool(name string, value bool, usage string) bool
- func (*Command) FlagFloat64(name string, value int64, usage string) float64
- func (*Command) FlagInt(name string, value int, usage string) int
- func (*Command) FlagInt64(name string, value int64, usage string) int64
- func (*Command) FlagString(name, value, usage string) string
- type OS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { }
func (*Command) FlagFloat64 ¶
解析命令行int64参数
func (*Command) FlagString ¶
解析命令行字符串参数
Click to show internal directories.
Click to hide internal directories.