EZ

Eduzan

Learning Hub

Back to tutorials

GO PROGRAMMING LANGUAGE

Lesson2025-12-16

Go (Golang) Tutorial Roadmap

Learn Go programming with this complete Golang tutorial roadmap. Covers Go basics, data types, control statements, functions, structs, pointers, concurrency, error handling, reflection, and file handl

Open module>
Lesson2025-12-16

Introduction of Go-Lang

Introduction Go is a procedural programming language. It was developed in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson at Google, but it was officially released in 2009 as an open-source progr

Open module>
Lesson2025-12-16

Fundamentals in Go

Identifiers In programming, identifiers are used for naming purposes. Essentially, identifiers are user-defined names for program components. In the Go language, identifiers can represent va

Open module>
Lesson2025-12-16

Control Statement in Go

if, if-else, Nested-if, if-else-if Decision-making in programming is analogous to decision-making in real life. In programming, a piece of code executes when a specified condition is met. These constr

Open module>
Lesson2025-12-16

Functions & Methods

Functions in Go Language In Go, functions are segments of code designed to carry out specific tasks. They can be reused throughout the program to optimize memory usage, enhance code clarity, and save

Open module>
Lesson2025-12-16

Structures in Golang

Structures A structure, or struct, in Go is a user-defined data type that groups together related items of different types into a single type. Any real-world entity with a set of properties

Open module>
Lesson2025-12-16

Arrays in Go

Arrays Understanding Arrays in Go Programming Language Arrays in Go (or Golang) are conceptually similar to arrays in other programming languages. They are particularly useful when you need to manage

Open module>
Lesson2025-12-16

Slices in Golang

Slices What Are Slices? Key Features: Slice Components: Creating Slices: 1. From Arrays: Use slicing syntax array[low:high]. 2. Slice Literals: 3. Using make(): 4. From Existing Slices: Use

Open module>
Lesson2025-12-16

File Handling (Input/Output) in Go (Golang)

Introduction to File Handling File handling refers to the process of creating, reading, writing, updating, and deleting files stored on a computer’s file system. In Go, file handling is part of standa

Open module>
Lesson2025-12-16

Pointers in Go (Golang)

A pointer is a variable that stores the memory address of another variable. In Go, pointer types look like *int, *string, *MyStruct, etc. Why pointers are used Pointers are useful when you want: Basic

Open module>
Lesson2025-12-16

Concurrency in Golang

Goroutines Goroutines allow functions to run concurrently and consume significantly less memory compared to traditional threads. Every Go program begins execution with a primary Goroutine, commonly re

Open module>
Lesson2025-12-16

Object Oriented Programming

Is Go Object Oriented? Go is not considered a pure object-oriented programming language. However, as outlined in Go’s FAQs, it incorporates features that allow object-oriented programming to some exte

Open module>
Lesson2025-12-16

Defer and Error Handling

Defer The defer statement in Go is used to execute a function call just before the enclosing function returns.  Example 1: Basic Usage of Defer Explanation:In this program, defer&n

Open module>
Lesson2025-12-16

First Class Functions

First-Class Functions in Go A language that supports first-class functions allows functions to be: Anonymous Functions Anonymous functions are functions without a name, which can be assigned

Open module>
Lesson2025-12-16

Reflection in Go

Reflection A language that supports first-class functions allows functions to be: Why Inspect a Variable’s Type at Runtime? At first glance, it might seem unnecessary to inspect a variable’s

Open module>
Lesson2025-12-16

File Handling in GO

Reading Files 1. Reading an Entire File into Memory The simplest file operation is reading an entire file into memory using the os.ReadFile function. Below is an example. Directory Structure

Open module>