Skip to main content
Welcome to the Go programming language guide. This comprehensive resource covers everything from basic data types and syntax to advanced topics like generics and concurrency.

Getting Started

Basic Data Types

Learn about Go’s fundamental types: booleans, numerics, and strings

Declaring Variables

Master variable declarations using var, :=, and const keywords

Type Casting

Understand explicit type conversions in Go

String Formatting

Format strings with Printf placeholders and verbs

Control Flow

Conditions

Control program flow with if-else and switch statements

Loops

Iterate with for loops, range, and control keywords

Functions and Types

Functions

Define and use functions, closures, and the defer keyword

Composite Types

Work with arrays, slices, maps, and structs

Pointers

Reference and modify values using memory addresses

Methods

Attach behavior to types with methods

Advanced Topics

Interfaces

Write flexible code with interface types

Generics

Create type-safe generic functions and types

Concurrency

Master goroutines and channels for concurrent programming

Build docs developers (and LLMs) love