Posts

"Hello World" Application Using Golang

        Now the question is how to start writing a program in Golang? Is that very difficult to start programming in Go? The answer is No. Is that coding style is very different from using Golang? the answer is No.  So now starts with the basic programming structure in Golang. Basic Golang programming structure components: 1. Package Declaration 2. Import packages 3. Functions 4. Variables 5. Statements and expression 6. Comments 1. Package declaration: As in other languages exp. java we need to define the package name first. So same in this language also we need to start with the declaration of the package name. Every Go program starts with package  <packagename> So for the package name string, there are only two values that can be possible, one is the main or the name of the directory it is in. Package main tells to Go compiler for creating an executable file. 2.  Import packages: To import required packages in our current writing pro...

Why Go?

Image
Is Golang object-oriented language? Answer - No, but we can achieve object-oriented features using Golang Is Golang procedure-oriented only? Answer- No  Golang is a general-purpose, open-source language. Golang began as Google's internal project which was officially announced in 2009. It is developed by Robert Griesemer, Ken Thomson, and Rob Pike. This language is firstly designed for professional programmers for efficiency. Go comes with its syntax, standard function, and also a pretty rich standard library. As a programmer, we wanted language which would be simple to understand, fast to learn and use, and maintainable. Go has all those support for the concurrency platform, built-in testing tool, profiling framework, and easy and clear documentation. Key features of Golang: 1. Faster Execution: Golang has compiled language. IT doesn't require any interpreter this leads to faster development and compilation directly to machine code. So it makes back-end development faster. 2. ...