go-pipeline

  • 所有者: mattn/go-pipeline
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

go-pipeline

unix command pipeline on golang

Usage

out, err := Output(
	[]string{"git", "log", "--oneline"},
	[]string{"grep", "first import"},
	[]string{"wc", "-l"},
)
if err != nil {
	log.Fatal(err)
}
fmt.Println(string(out))
// Output:
// 1
out, _ = CombinedOutput(
	[]string{"rmdir", "not_exist_dir"},
)
fmt.Println(string(out))
// Output:
// rmdir: failed to remove 'not_exist_dir': No such file or directory

Installation

$ go get github.com/mattn/go-pipeline

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)

主要指標

概覽
名稱與所有者mattn/go-pipeline
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2015-10-30 04:10:23
推送於2020-07-27 08:59:30
最后一次提交2019-03-23 23:45:19
發布數0
用户参与
星數151
關注者數3
派生數5
提交數14
已啟用問題?
問題數1
打開的問題數0
拉請求數2
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?