golang的调用shell的库go-sh.zip

上传者: 39840914 | 上传时间: 2022-06-17 16:58:47 | 文件大小: 17KB | 文件类型: ZIP
go-sh是一个golang的调用shell的库。 使用linux的人都知道shell脚本有它难以取代的优势,用2个词形容就是,简单、粗暴。但是shell有不少的坑,很容易就写的换个机器就不能使了。golang的优势很明显,写出来的代码bug少的可怜,而且跨各种平台。如果能将shell与golang结合起来,那将是强强联手,所向无敌。 go-sh就是这个一个golang库。如下是一个shell脚本转换golang代码的例子。 然后借助http://gobuild.io提供的在线golang交叉编译服务,整个过程就无敌了。


标签:gosh

文件下载

资源详情

[{"title":"( 20 个子文件 17KB ) golang的调用shell的库go-sh.zip","children":[{"title":"go-sh-master","children":[{"title":"testdata","children":[{"title":"executable <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"linkfile <span style='color:#111;'> 9B </span>","children":null,"spread":false},{"title":"hello.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"test_test.go <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"example","children":[{"title":"timeout","children":[{"title":"timeout.go <span style='color:#111;'> 533B </span>","children":null,"spread":false}],"spread":true},{"title":"example1.go <span style='color:#111;'> 888B </span>","children":null,"spread":false},{"title":"less","children":[{"title":"less.go <span style='color:#111;'> 106B </span>","children":null,"spread":false}],"spread":true},{"title":"tail","children":[{"title":"tailf.go <span style='color:#111;'> 223B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test.go <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"example_test.go <span style='color:#111;'> 515B </span>","children":null,"spread":false},{"title":"pipe_test.go <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.06KB </span>","children":null,"spread":false},{"title":"wercker.yml <span style='color:#111;'> 581B </span>","children":null,"spread":false},{"title":"go.sum <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"OLD_README.md <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"sh.go <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false},{"title":"sh_test.go <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"pipe.go <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"go.mod <span style='color:#111;'> 119B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明