"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...