Golang Tutorial
Golang Tutorial
What is Go Language?
Go language is a programming language initially developed at Google in the year 2007 by Robert Griesemer,
Rob Pike, and Ken Thompson. It also provides a rich standard library. The Go programming language is used in
some of Google’s production systems and also in that of many other major companies.
Go language provides
Garbage Collection
Type Safety
Dynamic-typing capability
and many advanced built-in types such as variable length arrays and key-value maps.
Welcome to Go Language (GoLang) Tutorial. In this Go Tutorial, we will go through the Go Basics with well-
detailed examples.
Prerequisites
Basic programming concepts would help you understand easily but not necessary. This Go tutorial is targeted
for beginners. So, even if you have just started with programming, we will guide you through the basics of Go
programming.
Go Tutorial
Go Basics
How to run Golang Program
Go Datatypes
Go Variables
Go Constants
Golang Comments
Go Arithmetic Operators
Go Logical Operators
Go Type Casting
Go Control Statements
Golang If Else
Golang Switch
Golang For Loop
Go Break
Go Continue
Go goto
Go Functions
Golang Functions
Go String Operations
Golang String Length
Golang String Concatenation
Golang Split String
Golang – Get index of a substring in a String
Golang – Convert String to Uppercase
Golang – Convert String to Lowercase
Go Arrays
Arrays are a kind of sequential data structures that allow to store multiple elements of a datatype under a single
variable. You can access the elements using index.
Go Structures
Go Range
Go Maps
Go Recursion
Go Error Handling
Golang
➩ Golang Tutorial
✦ Golang If Else
✦ Golang Switch
✦ Golang Comments
✦ Golang Functions
✦ Golang Array
✦ Golang Slice
✦ Golang Struct
✦ Golang Class
✦ Golang Range
✦ Golang Map
✦ Golang Goroutine
✦ Golang Channel