Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Go build the locale under Windows     - How to add a new hard disk without restarting the CentOS 7 / RHEL 7 virtual machine (Linux)

- Linux System Getting Started Learning: the Linux Wireshark interface dead solve (Linux)

- Simple Calendar C language (Programming)

- Linux system security knowledge (Linux)

- Linux network security strategy (Linux)

- Linux Network Security Tips Share (Linux)

- Linux for enterprises to build a firewall (Linux)

- You really do need to know a variety of programming languages (Programming)

- Java regular expressions examples (Programming)

- To install CentOS 6.5 on your hard drive under Windows 7 (Linux)

- SQLite (Database)

- Go build the locale under Windows (Linux)

- Basic Tutorial: Linux novice should know 26 commands (Linux)

- Dynamic programming Android (Programming)

- CentOS7 method to upgrade the kernel to 3.18 (Linux)

- Hadoop2.4.0 Eclipse plug-in making (Server)

- Security measures under Unix multi-user operating system (Linux)

- Oracle lag () and lpad () function (Database)

- Python system default encoding (Programming)

- Quickly build and install Linux KVM system (Linux)

  Go build the locale under Windows
  Add Date : 2018-11-21      
  Golang / Go Languages ​​/ Go IDE / Go Windows environment to build / Go automatically prompts the compiler / GoSublime.

Go is a compiled developed by Google, and hair, and having garbage collection programming language.

Robert Geruishimo (Robert Griesemer), Rob Pike (Rob Pike) and Ken Thompson in September 2007 began to design language Go, Go language is based on the Inferno operating system development. Go language in November 2009 officially announced, and implemented on the Linux and Mac OS X platforms.

GO language mascot, very cute.

hello Go Language world! Code:

package main

import "fmt"

func main () {
 fmt.Println ( "Hello, World")

Next, bring the installation Go development environment.

The first is the installation of Go, there is a very detailed installation instructions, http: //code.google.com/p/golang-china/wiki/Install or http://golang.org/doc/install

Here below our window installation, google has provided win packages for the novice or very simple!


Direct the next step ....... installation is very simple!

After installing Go, we can build a development environment, and here I use Sublime Text 2 + GoSublime + gocode. Friends do not understand the Sublime Text 2, you can see the official website: http: //www.sublimetext.com/ (in general is a lightweight, very convenient to use tools)

1. Download Sublime Text 2, at the following address: http: //www.sublimetext.com/

2. After extracting, double sublime_text, you can use Sublime Text 2 a.

3. Install Package Control, open Sublime Text 2 after press the shortcut keys Ctrl + `, open a command line window,` the key above Tab key, I just started not found, huh, huh. Enter the following and press Enter:

import urllib2, os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path (); os.makedirs (ipp) if not os.path.exists (ipp) else None; urllib2.install_opener (urllib2.build_opener (urllib2.ProxyHandler ())); open (os.path.join (ipp, pf), 'wb') .write (urllib2.urlopen ( 'http://sublime.wbond.net/'+pf.replace ( '', '% 20')) read ());. print 'Please restart Sublime Text to finish installation'

4. Restart Sublime Text 2, can be found in the Preferences menu, one more menu item Package Control.

5. Now install GoSublime plug-in, hold down Ctrl + Shilft + p will pop up a dialog box

Enter Enter install a pop-up dialog box installation package

As the GoSublime select Enter GoSublime

Enter Select Enter Go build (this is optional)

Get, GoSublime successful installation.

6. Install the following gocode,

Open the console, enter the following:

go get github.com/nsf/gocode

go install github.com/nsf/gocode

You can also go to github download https://github.com/nsf/gocode.git (To install the google git version management tool)

After installation is complete, we can at go / bin directory, find more of a gocode file. (Must be placed in the bin directory)

7. Modify GoSublime configuration: In the Preferences menu, locate the Package Settings, then find GoSublime, then down to find Settings - Default. Then open the file, add the following configuration and save

Well, so far, to build a complete development environment.

Open Sublime Text 2, New helloworld.go, write code as follows:

Go to witness the code automatically prompts the moment

Enter a p

Carriage return (enter key)

main methods, including automatically generated for you.

Here is an example of printing:

Keyboard shortcut Ctrl + b below the screen will appear the following interface:

Enter go build hello.go

Run, also press the shortcut keys Ctrl + b below the screen will appear the following screen, enter hello Enter.

Well, until now, development environment set up is completed, I hope everyone to learn Go language.
- To install the latest version of Shotwell 0.18 under Ubuntu (Linux)
- Oracle GoldenGate tutorial Second, configure and use (Database)
- Ubuntu install image browser and manager Phototonic 1.6.17 (Linux)
- PHP loop reference caused strange problems (Programming)
- How to make GRub instead of the default Ubuntu software center (Linux)
- MariaDB 10 Multi-source replication (Database)
- DM9000 timing settings (Programming)
- Depth understanding of JavaScript new mechanism (Programming)
- GitLab Guide installation under Ubuntu 14.04 (Server)
- Oracle delete table space prompted ORA-00604 and ORA-38301 (Database)
- Install mono offline on CentOS (Server)
- Use Android Studio and Gradle packaged multi-version APK (Programming)
- Initialization and starting process of Linux (Linux)
- Syncthing: Private Security Synchronization tool to synchronize files between computers / folder (Linux)
- Hibernate learning introductory tutorial (Programming)
- CentOS environment prepared crontab scheduled tasks (Linux)
- Compression decompression command under Linux (Linux)
- Bash Getopts - let your script supports command line parameters (Linux)
- grep command Series: How to Use the grep command in Linux / UNIX (Linux)
- Ubuntu 14.04 Nvidia graphics driver installation and settings (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.