Golang Tutorial – Learn Go Programming
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 resemblance with other programming languages
Go is a statically-typed language having the syntax similar to that of C.
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
Functions are basic in any functional or modular programming language.
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.
Golang Arrays – Declare, Initialize
Go Structures
Go Range
Go Maps
Go Recursion
Go Error Handling
Golang
➩ Golang Tutorial
✦ Run Golang Program
✦ Golang If Else
✦ Golang Switch
✦ Golang For Loop
✦ Golang Comments
✦ Golang Functions
✦ Golang Array
✦ Golang Slice
✦ Golang Struct
✦ Golang Class
✦ Golang Range
✦ Golang Map
✦ Golang Goroutine
✦ Golang Channel
Golang String Operations
✦ Golang String Length
✦ Golang String Concatenation
✦ Golang Split String
✦ Golang String - Get Index of Substr
✦ Golang String to Uppercase
✦ Golang String to Lowercase
✦ Golang Convert String to Integer