Tuesday, October 26, 2021
Home Fun With Programming Go Programming Go Programming Language – Introduction

Go Programming Language – Introduction

In this, We are going to discussing about Go Programming Language. So let’s begin….

Introduction :

It is the Go programming language. It is also called the Golang programming language and this is supported by big companies like Google, Intel, IBM, etc. In 2007, the programming language was developed by Robert Griesemer, Rob Pike, Ken Thompson on Google.

What is GOLANG?

Go Programming language is an Open source so that makes it easy to build, reliable, and efficient software. Go Programming language is a static -typed Compiled language and its compilation time is very fast. Its syntax is derived from C and C++.

Go is designed and supported by Google. Google has one of the largest cloud infrastructures in the world and it is scaled massively.

Why GoLang?

  • Scalable-leads to business growth
  • Quick Compilation- Fast go to market.
  • Concurrency -Simultaneous task execution.
  • Error checks -Bug-free applications.
  • Platform portability -Low costs.

Features of Go programming Language

  • Multithreading
  • Minimum Dependencies
  • Good Package Management
  • Powerful standard Library
  • Static Typing
  • Testing support
  • Platform Independent

Basic Structure of GoLang

  • Package Declaration
  • Import Packages
  • Variables
  • Statements and Expressions
  • Functions
  • Comments


Create a Go file demo.go

package main
import "fmt"
func main()
    fmt.Println("Hello World");

Now run the demo.go file to see the result

c:\Go_WorkSpace>go run demo.go

Every Go program should start with a package name,import the package fmt.This package implements I/O functions.

func main is the function it is placed in the main package.Under the main(),we can write the code inside the {…}

fmt.println will print the text on the screen.

Data Types and Variables

Data types

Numeric types: This includes numeric values like integer, floating-point, and complex values and There are different sizes of integers values I (int8,int16,int32,int64, etc.)
String types: These represent bytes we can do various types of operations like concatenation, extracting, substring, etc.
Boolean types: There are two types of values either true or false.


Variables are to stores a values in the memory location. variable can be declare using the syntax

var <variable name><type>
we can also give initial value to the variable : var <variable name><type>=<value>

we can also use multiple values foe example:

var <variable name1,><variable name2,> = <Value1>,<value2>


package main
import "fmt"
func main(){
var x int =5
var i , j =22,"hello"
      fmt.println("i and j:",i,j)


x : 5
i and j : 100 hello


Constants values are those whose value can not be change and it is declare by using the keyword “const”


package main
import  "fmt"
func main(){
const Pie =3.14
var area int
area = 4*Pie*r*r
fmt.println("area: %d",area)

Output : area: 113.04

Read More:-


  1. I am not sure where you’re getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for great information I was looking for this information for my mission.|


Please enter your comment!
Please enter your name here

Stay Connected


Most Popular

Best Tricks For Play & Win Ludo

Ludo King Game has now become the world’s popular game. Everyone, children, old and young, like to play this game.


In this article we are going to differenciate RTMP , RTSP and HLS (RTMP V/S RTSP V/S HLS) so lets start.

How To Scroll to Top, to Bottom, to Specific Element In Ionic 5 Angular?

hello, friends once again I welcome all of you to today's How To Scroll to Specific Element In Ionic Angular? article on...

How To Delete Facebook Account Permanently?

Today we will know about one problem, which people keep talking about, today we will know how to delete Facebook account. With...

Recent Comments

headlamp flashlight on RTMP V/S RTSP V/S HLS