Go language - Overview

  1. Chia sẻ trang này

    Tác giả: Mai Xuân Việt
    Đăng lúc: 17/5/18
    Go is a general-purpose language designed with systems programming in mind. It was initially developed at Google in the year 2007 by Robert Griesemer, Rob Pike, and Ken Thompson. It is strongly and statically typed, provides inbuilt support for garbage collection, and supports concurrent programming.
    Programs are constructed using packages, for efficient management of dependencies. Go programming implementations use a traditional compile and link model to generate executable binaries. The Go programming language was announced in November 2009 and is used in some of the Google's production systems.
    Features of Go Programming

    The most important features of Go programming are listed below −
    • Support for environment adopting patterns similar to dynamic languages. For example, type inference (x := 0 is valid declaration of a variable x of type int)
    • Compilation time is fast.
    • Inbuilt concurrency support: lightweight processes (via go routines), channels, select statement.
    • Go programs are simple, concise, and safe.
    • Support for Interfaces and Type embedding.
    • Production of statically linked native binaries without external dependencies.
    Features Excluded Intentionally

    To keep the language simple and concise, the following features commonly available in other similar languages are omitted in Go −
    • Support for type inheritance
    • Support for method or operator overloading
    • Support for circular dependencies among packages
    • Support for pointer arithmetic
    • Support for assertions
    • Support for generic programming
    Go Programs

    A Go program can vary in length from 3 lines to millions of lines and it should be written into one or more text files with the extension ".go". For example, hello.go.
    You can use "vi", "vim" or any other text editor to write your Go program into a file.

    Lesson List
    • Go Tutorial
      • Go - Environment Setup
      • Go - Program Structure
      • Go - Basic Syntax
      • Go - Data Types
      • Go - Variables
      • Go - Constants
      • Go - Operators
      • Go - Decision Making
      • Go - Loops
      • Go - Functions
      • Go - Scope Rules
      • Go - Strings
      • Go - Arrays
      • Go - Pointers
      • Go - Structures
      • Go - Slice
      • Go - Range
      • Go - Maps
      • Go - Recursion
      • Go - Type Casting
      • Go - Interfaces
      • Go - Error Handling
    • Go Useful Resources
      • Go - Questions and Answers
      • Go - Quick Guide
      • Go - Useful Resources
      • Go - Discussion
     

    Xem các chủ đề cùng chuyên mục

: Go language