文件名称:golang的调用shell的库go-sh.zip
文件大小:17KB
文件格式:ZIP
更新时间:2022-08-06 07:27:03
开源项目
go-sh是一个golang的调用shell的库。 使用linux的人都知道shell脚本有它难以取代的优势,用2个词形容就是,简单、粗暴。但是shell有不少的坑,很容易就写的换个机器就不能使了。golang的优势很明显,写出来的代码bug少的可怜,而且跨各种平台。如果能将shell与golang结合起来,那将是强强联手,所向无敌。 go-sh就是这个一个golang库。如下是一个shell脚本转换golang代码的例子。 然后借助http://gobuild.io提供的在线golang交叉编译服务,整个过程就无敌了。 标签:gosh
【文件预览】:
go-sh-master
----testdata()
--------executable(0B)
--------linkfile(9B)
--------hello.txt(0B)
----test_test.go(1KB)
----example()
--------timeout()
--------example1.go(888B)
--------less()
--------tail()
----test.go(1KB)
----example_test.go(515B)
----pipe_test.go(3KB)
----LICENSE(11KB)
----wercker.yml(581B)
----go.sum(233B)
----OLD_README.md(2KB)
----README.md(3KB)
----sh.go(4KB)
----sh_test.go(2KB)
----pipe.go(3KB)
----go.mod(119B)