I'm trying to make it easy for the not-too-technical to use my golang program as a command line application. I want them to be able to update the code easily too when I push changes to github. Is there a way to update a library using something like "go update github.com/user/repo" so they don't have to cd to the src directory and git pull themselves? Or at this point must I simply say "time to learn git"?
1条回答 默认 最新
douzhan8395 2014-08-12 15:07关注You can use:
go get -u import/pathThe -u flag instructs get to use the network to update the named packages and their dependencies. By default, get uses the network to check out missing packages but does not use it to look for updates to existing packages.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报