{"id":2712,"date":"2015-08-14T15:30:42","date_gmt":"2015-08-14T07:30:42","guid":{"rendered":"http:\/\/ellery.no-ip.info\/wp\/thinkingmore\/?p=2712"},"modified":"2015-08-14T15:30:42","modified_gmt":"2015-08-14T07:30:42","slug":"golang-and-gvm","status":"publish","type":"post","link":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2015\/08\/golang-and-gvm\/","title":{"rendered":"Golang and GVM"},"content":{"rendered":"<p>Ubuntu 14.04 \u9810\u8f09\u4e86 Golang 1.2 \uff0c\u5982\u679c\u60f3\u8981\u5176\u4ed6\u7248\u672c\u7684\u5462\uff1f\u5230\u5b98\u65b9\u7db2\u7ad9\u53bb\u627e\uff0c\u6703\u767c\u73fe\u6839\u672c\u627e\u4e0d\u5230\u4e0b\u8f09\u9023\u7d50\u3002\u7528 ppa \u53bb\u627e\uff0c\u662f\u53ef\u4ee5\u627e\u5230\u9019\u500b <a href=\"https:\/\/launchpad.net\/~evarlast\/+archive\/ubuntu\/golang1.4\">golang 1.4 : Jay R. Wren<\/a> \u3002<\/p>\n<p>\u70ba\u4e86\u5b89\u5168\u8d77\u898b\uff0c\u9084\u662f\u7528 Version manager \u597d\u4e86\uff0cGolang \u7684 Version manager \u5728\u7db2\u8def\u4e0a\u53ef\u4ee5\u627e\u5230\u5169\u500b\uff1agovm \u8ddf GVM\uff0c\u76ee\u524d\u770b\u8d77\u4f86\u6bd4\u8f03\u5e38\u898b\u7684\u662f GVM\u3002GVM \u7684\u5b89\u88dd\u53ef\u4ee5\u53c3\u8003\u9019\u7bc7\uff1a<a href=\"http:\/\/www.hostingadvice.com\/how-to\/install-golang-on-ubuntu\/\">7 Easy Steps to Install Go (Golang) on Ubuntu<\/a><\/p>\n<p>\u6458\u9304\u5b89\u88dd\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>bash &lt; &lt;(curl -s -S -L https:\/\/raw.githubusercontent.com\/moovweb\/gvm\/master\/binscripts\/gvm-installer)<\/li>\n<li>\u5728 .bashrc \u6216 .zshrc \u88e1\u52a0\u5165 [[ -s &#8220;$HOME\/.gvm\/scripts\/gvm&#8221; ]] &amp;&amp; source &#8220;$HOME\/.gvm\/scripts\/gvm&#8221;<\/li>\n<li>\u65b0\u958b\u6216\u91cd\u958b\u7d42\u7aef\u6a5f<\/li>\n<\/ol>\n<p>\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>\u770b\u80fd\u4e0b\u8f09\u7684\u7248\u672c\uff1agvm listall<\/li>\n<li>\u5217\u51fa\u76ee\u524d\u6709\u7684\u7248\u672c\uff1agvm list<\/li>\n<li>\u5b89\u88dd\u6307\u5b9a\u7248\u672c\uff1agvm install desired_version<\/li>\n<li>\u4f7f\u7528\u6307\u5b9a\u7248\u672c\uff1agvm use go1.4.2<\/li>\n<li>\u5176\u4ed6\u6307\u4ee4\u8aaa\u660e\uff0c\u57f7\u884c\uff1agvm<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 14.04 \u9810\u8f09\u4e86 Golang 1.2 \uff0c\u5982\u679c\u60f3\u8981\u5176\u4ed6\u7248\u672c\u7684\u5462\uff1f\u5230\u5b98\u65b9\u7db2\u7ad9\u53bb\u627e\uff0c\u6703\u767c\u73fe\u6839\u672c\u627e\u4e0d\u5230\u4e0b\u8f09\u9023\u7d50\u3002\u7528 ppa \u53bb\u627e\uff0c\u662f\u53ef\u4ee5\u627e\u5230\u9019\u500b golang 1.4 : Jay R. Wren \u3002 \u70ba\u4e86\u5b89\u5168\u8d77\u898b\uff0c\u9084\u662f\u7528 Version manager \u597d\u4e86\uff0cGolang \u7684 Version manager \u5728\u7db2\u8def\u4e0a\u53ef\u4ee5\u627e\u5230\u5169\u500b\uff1agovm \u8ddf GVM\uff0c\u76ee\u524d\u770b\u8d77\u4f86\u6bd4\u8f03\u5e38\u898b\u7684\u662f GVM\u3002GVM \u7684\u5b89\u88dd\u53ef\u4ee5\u53c3\u8003\u9019\u7bc7\uff1a7 Easy Steps to Install Go (Golang) on Ubuntu \u6458\u9304\u5b89\u88dd\u6b65\u9a5f\u5982\u4e0b\uff1a bash &lt; &lt;(curl -s -S -L https:\/\/raw.githubusercontent.com\/moovweb\/gvm\/master\/binscripts\/gvm-installer) \u5728 .bashrc \u6216 .zshrc \u88e1\u52a0\u5165 [[ -s &#8220;$HOME\/.gvm\/scripts\/gvm&#8221; ]] &amp;&amp; source &#8220;$HOME\/.gvm\/scripts\/gvm&#8221; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2015\/08\/golang-and-gvm\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Golang and GVM&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[98,103],"class_list":["post-2712","post","type-post","status-publish","format-standard","hentry","category-idea","tag-golang","tag-gvm"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":false,"jetpack_shortlink":"https:\/\/wp.me\/p2MOxp-HK","_links":{"self":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/2712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/comments?post=2712"}],"version-history":[{"count":1,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/2712\/revisions"}],"predecessor-version":[{"id":2713,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/2712\/revisions\/2713"}],"wp:attachment":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/media?parent=2712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/categories?post=2712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/tags?post=2712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}