Go Language Tutorial
Go tutorial provides basic and advanced concepts of Go programming. Our Go language tutorial is designed for beginners and professionals both.
Go is a programming language which is developed by Google with the vision of fast development and high performance.
Our Go Tutorial includes all topics of Go language such as what is go, how to install go, go if-else, go for, go for-range, go break, go continue, go struct, go interface, go ruin, go map, go string, go array, go http server, go rest api, go mutex etc.
Go Language Introduction
Go is a programming language which is developed by Google in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson. Go is a statically-typed language. Go has a similar syntax to C. It is developed with the vision of high performance and fast development. Go provides type safety, garbage collection, dynamic-typing capability, many advanced built-in types such as variable length arrays and key-value maps etc.
- Go is modern, fast and comes with a powerful standard library.
- Go has built-in concurrency.
- Go uses interfaces as the building blocks of code reusability.
The basic structure of a Go programs consists of following parts:-
- Package Declaration
- Import Packages
- Variables
- Statements and Expressions
- Functions
- Comments
Go Example
Let’s see a simple example of Go programming language.
Output:
Hello, World
A complete explanation of “Go Hello World example” is given in next pages.
Go Language Index
Go Language
Go Controls
- Go if-else
- Go Switch
- Go For
- Go For Range
- Go Goto
- Go Break
- Go Continue
- Go Comments
- Go Constants
- Go Type Casting
Go Functions
Go Arrays
Go Strings
Go Types
Go Map
Go Error
Go Concurrency
Go Time
Go Misc
- Go File I/O
- Go HTTP Server
- Go URL Parsing
- Go Rest API
- Go Base64 Encoding
- Go Random Number
- Go Sorting
- Go JSON
Interview Questions
Prerequisite
To learn Go, you must have the basic knowledge of C programming.
Audience
Our Go Tutorial is designed to help beginners and professionals both.
Problem
You will not find any problem in this Go tutorial. However, if there is any mistake, please post the problem in the contact form.