#01 Introduction to Golang

Search for a command to run...

No comments yet. Be the first to comment.
I am learning the Go language and taking notes while learning in the easiest way from my side and in detail, I will just post here by Series.
A go file has the following parts: Package declaration Import packages main() function Example: package main import "fmt" func main() { fmt.Println("Hello World!") } package keyword defines the package name because every program is a part of t...
Variable Variables are for storing data values. In Golang there are available data types for variables are string, int, boolean, and float32. There are 2 ways to declare the variable First way is to declare a variable using the var keyword Second ...

A go file has the following parts: Package declaration Import packages main() function Example: package main import "fmt" func main() { fmt.Println("Hello World!") } package keyword defines the package name because every program is a part of t...

Content Security Policy ( CSP ) CSP is a layer that helps to prevent certain types of attacks including Cross-Site Scripting ( XSS ) and data injection attacks. These types of attacks are used to deface websites and steal data. CSP is designed to be ...

Statically Typed Languages Statically typed language needs to define variable data type before compiling the program Because the compiler doesn’t understand the type of variable value whether it’s string or integer. Example: public class Main { p...

Go language statically typed language, compiled programming language designed at Google.
Infrastructure has changed a lot in years with cloud and multi-core processors. As it said the infrastructure is scalable & distributed, and dynamic has more capacity. But most programming languages can’t take advantage of the infrastructure.
For example, you have one application that executes 1 thread task at a time in order after finishing the first thread task it starts the second thread task to finish in order.
As the infrastructure has improved so it’s possible to application can execute tasks in parallel which makes the application faster.