Documentation ¶
Index ¶
Constants ¶
View Source
const ( UTF8 = Charset("UTF-8") GB18030 = Charset("GB18030") )
Variables ¶
This section is empty.
Functions ¶
func ConvertByte2String ¶
Types ¶
type Commander ¶
type Commander interface { Exec(args ...string) (int, string, error) ExecAsync(stdout chan string, args ...string) int ExecIgnoreResult(args ...string) error }
func NewCommand ¶
func NewCommand() Commander
type LinuxCommand ¶
type LinuxCommand struct { }
func NewLinuxCommand ¶
func NewLinuxCommand() *LinuxCommand
func (*LinuxCommand) ExecAsync ¶
func (lc *LinuxCommand) ExecAsync(stdout chan string, args ...string) int
func (*LinuxCommand) ExecIgnoreResult ¶
func (lc *LinuxCommand) ExecIgnoreResult(args ...string) error
type WindowsCommand ¶
type WindowsCommand struct { }
func NewWindowsCommand ¶
func NewWindowsCommand() *WindowsCommand
func (*WindowsCommand) ExecAsync ¶
func (lc *WindowsCommand) ExecAsync(stdout chan string, args ...string) int
func (*WindowsCommand) ExecIgnoreResult ¶
func (lc *WindowsCommand) ExecIgnoreResult(args ...string) error
Click to show internal directories.
Click to hide internal directories.