“Go will be the server language of the future.” — Tobias Lütke, Shopify
Go (often referred to as Golang) is an open source programming language that makes it easy to build simple, reliable, and efficient software. Golang is a statically type language and compiled programing language. Go is similar to C, but with memory safety, garbage collection. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code.
The world was first introduced to Go in November 2009 by Google’s Rob Pike, Robert Griesemer, and Ken Thompson. The main goal of creating Go was to combine the best features of other programming languages.
Go released its latest version 1.15.6 on 3rd December 2020.
A very basic Hello world program with Go:
package main import "fmt" func main() { fmt.Println("Hello World") }
Above code snippet will output the string on console as:
Hello World
Explanation:
Every go code should be written inside package, and main package ensures that the package is executable.
Keyword "import" use to include required packages inside our application, in above code "fmt" package use to print message on console.
Function "main()" is the starting point of go application.
Why uses golang?
As we know this era is very fast, so everyone wants to access on web very quickly and also wants to secure their data with high security.So here we're not compare Golang with others because every programming languages have advantages and as well as disadvantages.We're talking about only Golang.
Golang is an open source language which provides simplicity in written its codes, easy to learn and also provide speed in execution, as we know JAVA compiles their code to machine language with JVM compiler but Golang is already compiled language so it doesn't take time to compile as Java takes. Golang provide high performance and its main purpose to adopted by many developer is its concurrency mechanism which is achieve by go-routine. Go-routine managed by channels(we will look into these all terms later).
Here listed some of big companies that uses Golang.
Golang is an open source language which provides simplicity in written its codes, easy to learn and also provide speed in execution, as we know JAVA compiles their code to machine language with JVM compiler but Golang is already compiled language so it doesn't take time to compile as Java takes. Golang provide high performance and its main purpose to adopted by many developer is its concurrency mechanism which is achieve by go-routine. Go-routine managed by channels(we will look into these all terms later).
Here listed some of big companies that uses Golang.
- Dropbox
- Sound cloud
- Docker
- Cloud flare
- BBC
Excellent sir best answer available on Internet... Very happy
ReplyDelete