Golang 获取线程ID

11-02 3,785 views

package main import ( "bytes" "fmt" "runtime" "strconv" ) func main() { fmt.Println(getGID()) } func getGID() uint64 { ...
阅读全文 1

golang 不能获取命令行程序的输出

10-25 1,157 views

package main import ( "bufio" "bytes" "fmt" "os" "os/exec" "time" ) var cmd *exec.Cmd = exec.Command("TyphoonSocksClient...
阅读全文 0

golang cmd

10-13 1,016 views

cmd := exec.Command("TyphoonSync", `-home=config`, `-gui-apikey=123`) // 当前进程启动 // err := cmd.Run() // 异步启动 err := cmd.Start()
阅读全文 0

golang DES加密解密

10-08 1,709 views

http://www.iteye.com/topic/1122076/ package main import( "crypto/des" "crypto/cipher" "fmt" "bytes" ) func PKCS5Padding(cipherte...
阅读全文 0

golang signal

9-17 1,040 views

SIGHUP 终止进程 终端线路挂断 SIGINT 终止进程 中断进程 SIGQUIT 建立CORE文件终止进程,并且生成core文件 SIGILL 建立CORE文件 ...
阅读全文 0