Skip to content

Instantly share code, notes, and snippets.

View corvofeng's full-sized avatar
Do You Want To Build A Snowman.

corvofeng corvofeng

Do You Want To Build A Snowman.
View GitHub Profile
@corvofeng
corvofeng / CreateFiles.go
Created December 29, 2017 02:04
创建多个可供读写的临时文件, 并保证最终可以关闭
package main
import (
"fmt"
"os"
)
// Creat Many files to read or write
// file name likes `tmp-file_ok-0``
func FileCreator(fileCnt int) {
@corvofeng
corvofeng / gritty.go
Created November 5, 2017 15:56 — forked from morria/gritty.go
package main
// sudo yum install golang golang-github-kr-pty-devel
import (
"fmt"
// "log"
// "syscall"
"os/exec"
"os"