cmd

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	UTF8    = Charset("UTF-8")
	GB18030 = Charset("GB18030")
)

Variables

This section is empty.

Functions

func ConvertByte2String

func ConvertByte2String(src *stream.Stream, charset Charset) string

func Kill

func Kill(pid int) error

func Run

func Run(command string) (string, error)

Types

type Charset

type Charset string

type Session

type Session struct {
	ShowLog    bool
	ShowStdOut bool
	// contains filtered or unexported fields
}

func NewSession

func NewSession() *Session

func (*Session) GetPid

func (s *Session) GetPid() <-chan int

func (*Session) SetDir

func (s *Session) SetDir(dir string)

func (*Session) SetLog

func (s *Session) SetLog(wr io.Writer)

Directories

Path Synopsis
m

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL