This is a creation in Article, where the information may have evolved or changed.
Introduction Since the use of Chromebook, my mind has been flooded with the idea of developing in the cloud. I'm only happy with Cloud 9 in an online development environment where I've used a few bits. In fact, Cloud 9 doesn't support go development, so I'll teach you how to get go running on Cloud 9. Create your workspace The first step is to create a workspace, named according to your preferences. When the workspace is created, click the Start Edit button and you'll see a blank workspace and a readme.md file (it doesn't matter if you delete it). At the bottom of the workspace, you can see the console, which is where we're going to do it next. If you want to use a more pure console, you can start it in the following location: View > Terminals > New Terminal The best part of C9 is its virtual environment, and if you're familiar with the command line under Linux, it's easy to get started. Now that we've opened the working environment, let's start configuring it. |
Cmy00cmy Translated 11 months ago 0 Person Top top translation of good Oh! |
Download Go When you first enter the workspace, you will see the following prompt: focus on "~/562166", which is the folder where your workspace is located. Remember this path, and we'll use it later. Just, now we need a place to download go. We can put it in the home directory, enter the following command to enter the specified directory: Cd.. Now we can start to download go, when I write this blog, the latest version is 1.1.1: wget https://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz After the download is complete, extract the compressed package: Tar-xzf go1.1.1.linux-amd64.tar.gz When the decompression is complete, you can see a go folder in your home directory. As for the compression package, delete it, no need. |
Cmy00cmy Translated 11 months ago 0 Person Top top translation of good Oh! |
Other translation versions (1) |
Loading ...
configuration ring The final step is to configure the development environment so that the IDE can recognize the go component and our go code files, so we need to edit the bash configuration. C9 provides the VIM editor on the command line: vim ~/.BASHRC Adds the following to the. bashrc file: # Setup Go configuration export goroot=$ Home/go export path= $PATH: $GOROOT/bin # Setup Workspace export gopath= $HOME/562166 export path= $PATH: $GOPATH/bin p> the file path of the previous few is now in handy there is a wood there ~ update above the Gopath for you to write down the address instead of the one I wrote here ( $HOME/562166 ). Save. BASHRC, Reload configuration: source ~/.BASHRC Get it done! Now you can go all the way \ (^o^)/~ If you have any questions, just bomb me . Read the go Language development Guide . |
cmy00cmy translated 11 months ago 0 Human top top Good translation! |
other translations (1) |
Loading ...All translations in this article are for learning and communication purposes only, please be sure to indicate the translator, source, and link to this article.
Our translation work in accordance with the CC agreement, if our work has violated your rights and interests, please contact us promptly