先保存一下吧,虽然没感觉第三种方便多少
https://www.jb51.net/article/129427.htm
http://www.sz-ming.com/2018/06/20/golang%E7%9A%84%E4%B8%80%E4%B8%AAcli%E6%A1%86%E6%9E%B6%E4%BB%8B%E7%BB%8D%EF%BC%8C%E4%B8%AA%E4%BA%BA%E5%AD%A6%E4%B9%A0%E5%A4%87%E5%BF%98/