Golang Introduction and Configuration

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Go is a simple parallel development that was released in 2009, and a cross-platform class C language. Because of its strong parallelism, it is suitable for network development.

Introduction from its website:

The Go programming language is an open source project that makes programmers more efficient. Go is expressive, concise, clear, and efficient. Its parallel mechanism makes it easy to write multicore and Web applications, while the novelty type system allows for the building of resilient modular programs. Go compiles to machine code very quickly, with convenient garbage collection and powerful runtime reflection. It is a fast, statically typed compilation language, but it feels like a dynamic type, interpreted language.

    1. Windows Go Environment configuration

      1) binary configuration

      • download. zip file at official website go:https://golang.org/dl/, current stable version is version go1.4.2 , the latest version is go1.5beta3.
      • Unzip to the pointing disk, such as C \
      • to ensure that the content is C:\Go. Note: When extracting the zip file, this directory is created;
      • add C:\Go\bin to $PATH:
       Export Path=c:\go  \bin   

      2) Use the Setup Wizard

      • to download the. msi file in https://golang.org/dl/;
      • install to the specified location.

      After installation, enter the following command in the console to indicate success:

    2. Compile run go program

      • Compile go code build. exe file

        Go build xxx.go

      • Compile run go code

        go run xxx.go

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.