{"id":510,"date":"2022-01-13T13:45:19","date_gmt":"2022-01-13T04:45:19","guid":{"rendered":"http:\/\/www.bluebee.co.kr\/?p=510"},"modified":"2022-01-17T14:19:33","modified_gmt":"2022-01-17T05:19:33","slug":"ubuntu-golang","status":"publish","type":"post","link":"http:\/\/www.bluebee.co.kr\/?p=510","title":{"rendered":"ubuntu golang"},"content":{"rendered":"<p>sudo apt-get install golang-go<\/p>\n<p>\ub610\ub294<\/p>\n<p>1. go tarball \ub2e4\uc6b4\ub85c\ub4dc<br \/>\nwget https:\/\/dl.google.com\/go\/go1.17.6.linux-amd64.tar.gz<\/p>\n<p>2. tarball \uccb4\ud06c\uc12c<br \/>\nsha256sum go1.17.6.linux-amd64.tar.gz<br \/>\n\ud655\uc778 231654bbf2dab3d86c1619ce799e77b03d96f9b50770297c8f4dff8836fc8ca2<\/p>\n<p>3. \ucd94\ucd9c<br \/>\nsudo tar -C \/usr\/local -xvf go1.17.6.linux-amd64.tar.gz<\/p>\n<p>4. path \uc124\uc815<br \/>\n#~\/.profile<br \/>\nexport GOROOT=\/usr\/local\/go<br \/>\nexport GOPATH=$HOME\/go<br \/>\nexport GOBIN=$GOPATH\/bin<br \/>\nexport PATH=$GOROOT\/bin:$GOBIN:$PATH<\/p>\n<p>shell \uc138\uc158 \ub85c\ub4dc<br \/>\nsource ~\/.profile<\/p>\n<p>5. \uc124\uce58 \ud655\uc778<br \/>\ngo version<\/p>\n<p>6. workspace\ub294 \uae30\ubcf8\uc801\uc73c\ub85c $HOME\/go<br \/>\nmkdir ~\/go<\/p>\n<p>7. mvc\ud3b8\ub9ac\ud558\uac8c revel \uc124\uce58\u3131\u3131<\/p>\n<p>go get github.com\/revel\/revel<\/p>\n<p>go get github.com\/revel\/cmd\/revel<\/p>\n<p>go get github.com\/bradfitz\/gomemcache\/memcache<\/p>\n<p>go get github.com\/garyburd\/redigo\/redis<\/p>\n<p>go get github.com\/patrickmn\/go-cache<\/p>\n<p>8. \ud14c\uc2a4\ud2b8<\/p>\n<p>revel run -a project<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo apt-get install golang-go \ub610\ub294 1. go tarball \ub2e4\uc6b4\ub85c\ub4dc wget https:\/\/dl.google.com\/go\/go1.17.6.linux-amd64.tar.gz 2. tarball \uccb4\ud06c\uc12c sha256sum go1.17.6.linux-amd64.tar.gz \ud655\uc778 231654bbf2dab3d86c1619ce799e77b03d96f9b50770297c8f4dff8836fc8ca2 3. \ucd94\ucd9c sudo tar -C \/usr\/local -xvf go1.17.6.linux-amd64.tar.gz 4. path \uc124\uc815 #~\/.profile export GOROOT=\/usr\/local\/go export GOPATH=$HOME\/go export GOBIN=$GOPATH\/bin export PATH=$GOROOT\/bin:$GOBIN:$PATH shell \uc138\uc158 \ub85c\ub4dc source ~\/.profile 5. \uc124\uce58 \ud655\uc778 go version 6. workspace\ub294 \uae30\ubcf8\uc801\uc73c\ub85c $HOME\/go mkdir ~\/go 7. mvc\ud3b8\ub9ac\ud558\uac8c revel \uc124\uce58\u3131\u3131 go get github.com\/revel\/revel go get github.com\/revel\/cmd\/revel go get github.com\/bradfitz\/gomemcache\/memcache go get github.com\/garyburd\/redigo\/redis go get github.com\/patrickmn\/go-cache 8. \ud14c\uc2a4\ud2b8 revel run -a project<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"class_list":["post-510","post","type-post","status-publish","format-standard","hentry","category-dev"],"_links":{"self":[{"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=510"}],"version-history":[{"count":8,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":518,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/510\/revisions\/518"}],"wp:attachment":[{"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}