It is always good to have first-hand knowledge about GO, before we start with its Installation Process.
Go
was first developed in September 2007 by Robert Griesemer, Rob Pike,
and Ken Thompson at Google. But it was announced or launched in November
2009. It is also known as Golang [golang.org].
Go programming language is very similar to C programming language. We
can say that it is much more updated version of C language. It has
incorporated many good ideas from many other languages, it also avoided
features that makes language complex. It has automatic memory management
like garbage collection in other programming languages like C#, Java.
Go
is an open source project, and its source code is freely available to
everyone. It can run on Linux, Mac OS X, Microsoft Windows and many
other Unix like operating systems. Generally programs written one of
these operating system, can easily run on any other supported
environment, without modifying the source code.
Origin of Go. Source: from Google.
The
main motivation behind GO project was frustration with several software
systems at Google that were suffering from complexity.
First GO Program :
I generally start learning any new language by writing and executing simple old traditional 'Hello World !!!' program.
package main
import "fmt"
func main() {
fmt.Println("Hello World !!!")
}
Hurry !!!!
Output:
--------------------------------------------------------------
PS D:\Go Sample> go run First.go
Hello World !!!
Output:
--------------------------------------------------------------
PS D:\Go Sample> go run First.go
Hello World !!!
In the next blog, we will
- Install Go on windows
- Install Visual Studio Code
- Execute Hello World Program.