Documentation ¶
Index ¶
- func CreateCertificate() (string, string, error)
- func GetExePath(name string) string
- func IoSwap(src io.ReadWriteCloser, dst io.ReadWriteCloser)
- func ParseArgs(ins interface{})
- func ParseArgsEx(args []string, ins interface{})
- func StringSign(str, key string) string
- func WriteAll(w io.Writer, buf []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IoSwap ¶
func IoSwap(src io.ReadWriteCloser, dst io.ReadWriteCloser)
func ParseArgs ¶
func ParseArgs(ins interface{})
ParseArgs 解析命令行
type Args struct { LogDir string `arg:"dir" txt:"日志所在文件夹"` Model int `arg:"model" txt:"日志模型"` Flow bool `arg:"flow" txt:"是否滚动显示"` }
支持的类型: string, int, int64, uint, uint64, float64, bool
func ParseArgsEx ¶
func ParseArgsEx(args []string, ins interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.