Tutorial lessons
Go Programming Language
Learn Go (Golang) with free step-by-step tutorials covering functions, structs, arrays, slices, pointers, goroutines, concurrency, error handling, and more.
Lessons
Tutorial lessons
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
Introduction of Go-Lang
Explore Go programming with an introduction to Golang’s history, syntax, packages, concurrency, garbage collection, and your first Hello World program.
Fundamentals in Go
Learn Go fundamentals with examples of identifiers, keywords, data types, strings, and constants. Understand naming rules, exported names, and typed constants.
Control Statement in Go
Learn control statements in Go with examples of if, if-else, nested conditions, for loops, range iteration, expression switches, and type switches.
Functions & Methods
Learn functions and methods in Go with examples of parameters, variadic and anonymous functions, defer, main, init, and methods with value or pointer receivers.
Structures in Golang
Learn structures in Golang with examples of struct declarations, initialization, field access, pointers, nested structs, anonymous structs, and embedded fields.
Arrays in Go
Learn arrays in Go with examples of declaration, initialization, indexing, iteration, multidimensional arrays, copying by assignment, and array pointers.
Slices in Golang
Learn slices in Golang with examples of length, capacity, underlying arrays, slicing syntax, make, append, iteration, and slice composite literals.
File Handling (Input/Output) in Go (Golang)
Learn file handling in Go with os, io, and bufio. Create, read, write, append, copy, and delete files, manage permissions, and handle errors with examples.
Pointers in Go (Golang)
Learn pointers in Go with examples of memory addresses, dereferencing, nil pointers, function arguments, struct pointers, new, double pointers, and comparisons.
Concurrency in Golang
Learn concurrency in Golang with goroutines, channels, and select statements. Explore sending, receiving, closing channels, buffering, and channel directions.
Object Oriented Programming
Explore object oriented programming in Go using structs and methods, with a practical package example showing how to group product data and behavior.
Defer and Error Handling
Learn defer and error handling in Go with examples of deferred calls, LIFO order, custom errors, error wrapping, and inspecting errors using errors.Is and errors.As.
First Class Functions
Learn first-class functions in Go with anonymous functions, custom function types, higher-order functions, closures, and practical slice filtering and mapping.
Reflection in Go
Learn reflection in Go using reflect.TypeOf, reflect.ValueOf, and Kind to inspect types and struct fields at runtime, with a query generation example.
File Handling in GO
Learn file handling in Go with examples for reading, writing, appending, embedded files, command-line paths, and concurrent file writing using channels.