Saturday, August 24, 2019

What is Go?

Go (also known as Golang) is an open source programming language developed by Google. It is a statically-typed compiled language. Go supports concurrent programming, i.e. it allows running multiple processes simultaneously. This is achieved using channels, goroutines, etc. Go has garbage collection which itself does the memory management and allows the deferred execution of functions. 

Go Language Introduction

Go is a programming language which is developed by Google in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson. Go is a statically-typed language. Go has a similar syntax to C. It is developed with the vision of high performance and fast development. Go provides type safety, garbage collection, dynamic-typing capability, many advanced built-in types such as variable length arrays and key-value maps etc.
  • Go is modern, fast and comes with a powerful standard library.
  • Go has built-in concurrency.
  • Go uses interfaces as the building blocks of code reusability.
The basic structure of a Go programs consists of following parts:-
  • Package Declaration
  • Import Packages
  • Variables
  • Statements and Expressions
  • Functions
  • Comments

Go Example

Let's see a simple example of Go programming language.
  1. package main  
  2. import "fmt"  
  3. func main() {  
  4.    fmt.Println("Hello, World")  
  5. }  
Output:
Hello, World
A complete explanation of "Go Hello World example" is given in next pages.

No comments:

Post a Comment

No String Argument Constructor/Factory Method to Deserialize From String Value

  In this short article, we will cover in-depth the   JsonMappingException: no String-argument constructor/factory method to deserialize fro...