如何正确获取go build的返回码?

I want to add go build into a precommit hook so that not to ship unbuildable code.

If the build succeeds, I want to continue commit, otherwise fail and reject commit.

How do I do it properly?

查看全部
douqian3712
douqian3712
2017/01/21 08:01
  • hook
  • git
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复