Skip to the content.

Free Go and Rust Books: Legally Free Golang and Rust Programming Books and Guides

A curated list of free Go books and free Rust books you can read legally online, including the official “docs-books” (The Rust Programming Language, Rust by Example, Effective Go, the Go Tour) and the best community guides for testing, concurrency, async, embedded, web services and performance. Each entry says what it is best for, its level and its license, plus staged reading paths for learning Golang or Rust from scratch.

Last reviewed: December 2026. “Free” means free to read from an official source (the Go or Rust project, the author, a university or an open license). Both languages release frequently (Go about twice a year, Rust every six weeks), so the official docs are always the most current source.


Table of Contents


Quick Picks

You want… Best free pick Why
Learn Go fast A Tour of Go then Go by Example Interactive tour, then annotated runnable examples for every common task.
Learn Go properly with tests Learn Go with Tests Teaches Go and test-driven development together.
Write idiomatic Go Effective Go and Google’s Go Style Guide Official idioms plus a modern, detailed style guide.
Learn Rust The Rust Programming Language (“the Book”) The official book; complete and current.
Learn Rust with quizzes The Book, Brown University interactive edition Same book with quizzes and new ownership visualizations.
Learn Rust by doing Rustlings and 100 Exercises to Learn Rust Small failing exercises that compile one concept at a time.
Rust in a structured course Comprehensive Rust Google’s multi-day Rust course, free, with Android, bare-metal and concurrency modules.
Concurrency in Rust Rust Atomics and Locks Atomics, memory ordering and building locks, free online from the author.

Go vs Rust: Which Should You Learn

  Go Rust
Learning curve Gentle; productive in weeks Steep; ownership and lifetimes take time
Memory Garbage collected Ownership and borrowing, no GC
Concurrency Goroutines and channels built in Threads, async/await with runtimes like Tokio, compile-time data-race safety
Typical uses Cloud services, CLIs, DevOps tools, networking, Kubernetes ecosystem Systems programming, performance-critical services, CLIs, embedded, WebAssembly, browsers, OS components
Compile speed Very fast Slower
Official free book Go Tour + docs The Rust Programming Language

Advice: pick Go if you want to ship back-end services soon. Pick Rust if you want systems-level control and safety, or you already know C/C++. Many developers end up using both.


Part 1: Go

Go Reading Paths

Path A: Go from zero (6 to 10 weeks, about 1 hour a day)

Weeks Read Do
1 A Tour of Go and Get started tutorial Finish the tour; install Go; write and run modules.
2-4 Learn Go with Tests, “Go fundamentals” section Every chapter, tests first.
5-6 Go by Example Rewrite each concurrency example from memory.
7-8 Effective Go and Go Code Review Comments Review your own code against them.
9-10 Gophercises Build 4-5 exercises (URL shortener, CLI task manager).

Path B: Programmer learning Go for work (2 to 3 weeks)

Tour of Go, then Go by Example, then Effective Go, then Uber’s Go Style Guide and the Go Memory Model. Build a small HTTP JSON API with tests and a database.

Path C: Deep Go (ongoing)

Go 101 for language details, 100 Go Mistakes summary for pitfalls, the Go spec for precision, Diagnostics for profiling and tracing.

Official Go Docs-Books

Resource Best for
A Tour of Go The interactive introduction; start here.
Go documentation hub and Learn Tutorials: modules, generics, fuzzing, web services, databases.
Effective Go Idioms: naming, interfaces, embedding, concurrency. Written for early Go, so check newer features (generics, modules) elsewhere.
The Go Programming Language Specification Short and readable for a spec; read it once.
The Go Memory Model What concurrent programs are guaranteed to see.
Diagnostics Profiling, tracing, debugging.
The Go Blog Deep articles from the Go team on generics, errors, slices, and every release.
Release history What changed in each version.

Free Go Books for Beginners

Book Author(s) Best for License / access
Go by Example Mark McGranaghan, Eli Bendersky Annotated, runnable examples for every common task. CC BY 3.0
Learn Go with Tests Chris James and contributors Go plus TDD, from hello world to building an application. MIT
Practical Go Lessons Maximilien Andile A complete beginner book with questions and answers at the end of each chapter. Free online
Essential Go Krzysztof Kowalczyk and Stack Overflow contributors Practical topic-by-topic book derived from Stack Overflow Documentation. CC BY-SA
Learn X in Y minutes: Go Community One-page tour for programmers. CC BY-SA 3.0

Best pick: Tour of Go, then Learn Go with Tests.

Intermediate and Advanced Go

Resource Author(s) Best for Access
Go 101 Tapir Liu Detailed language mechanics, plus related books on generics, optimizations and details on the same site. Free online
100 Go Mistakes and How to Avoid Them (summary site) Teiva Harsanyi Free summary of the book’s common mistakes; the full book is paid. Free site
Go Code Review Comments Go team Common review feedback. Free
Go Blog articles Go team Generics, error handling, profile-guided optimization and more. Free

Go Style Guides

Go for Web and Databases

Resource Best for Access
Build Web Application with Golang Older but complete open book on web apps in Go; many translations. Free (GitHub)
Go database/sql tutorial Using database/sql correctly: connections, prepared statements, transactions. Free online
Go tutorials: RESTful API with Gin, database access Official step-by-step tutorials. Free

Go Practice

Exercism Go track, Gophercises (free video exercises), Go Playground.

Book Why recommended Status
The Go Programming Language (Donovan, Kernighan) Rigorous classic (predates generics); site has free sample chapter and code. Paid
Let’s Go (Alex Edwards) Building a full web app step by step. Paid
Writing an Interpreter in Go (Thorsten Ball) Build an interpreter, test-first. Paid
Learning Go, 2nd ed. (Jon Bodner) Idiomatic modern Go including generics. Paid

Part 2: Rust

Rust Reading Paths

Path A: Rust from zero (10 to 16 weeks, about 1 hour a day)

Weeks Read Do
1-6 The Rust Programming Language (or the Brown interactive edition) Every chapter; the projects (guessing game, minigrep, web server).
1-6 (in parallel) Rustlings Do the exercises matching each chapter.
7-8 Rust by Example Skim familiar parts, practise unfamiliar ones.
9-11 100 Exercises to Learn Rust Traits, error handling, concurrency, async.
12-14 Learning Rust With Entirely Too Many Linked Lists Finally understand Box, Rc, RefCell and raw pointers.
15-16 Command Line Applications in Rust Ship a CLI tool.

Path B: Experienced C++/Go/Java developer (4 to 6 weeks)

Comprehensive Rust (the core days), then the Book’s chapters on ownership, traits, lifetimes, smart pointers and concurrency, then Effective Rust and the Tokio tutorial.

Path C: Deep Rust (ongoing)

Rust Atomics and Locks, The Rustonomicon, The Little Book of Rust Macros, The Rust Performance Book, The Rust Reference.

Official Rust Docs-Books

All free at rust-lang.org/learn and installed locally with rustup doc.

Book Best for
The Rust Programming Language The main book; read first. Dual licensed MIT/Apache-2.0.
Rust by Example Runnable examples by topic.
The Cargo Book Packages, workspaces, features, publishing.
The Rust Reference Precise language reference.
The Rustonomicon Unsafe Rust: what you must uphold.
The Edition Guide What changed in the 2018, 2021 and 2024 editions.
The rustdoc book Writing documentation and doc tests.
Standard library docs The API reference, with examples.
Rust API Guidelines Designing idiomatic library APIs.
The Rust Async Book Async/await fundamentals (being rewritten; some chapters incomplete).
Rust Compiler Development Guide How rustc works; contributing.
Ferrocene Language Specification A formal-style specification of Rust, now hosted by the Rust project.
Clippy lints Every lint with explanation; a hidden style guide.

Free Rust Books for Beginners

Book Author(s) Best for License / access
The Rust Programming Language Steve Klabnik, Carol Nichols, Chris Krycho and the Rust community Everyone. MIT / Apache-2.0
Brown interactive edition of the Book Will Crichton, Gavin Gray, Shriram Krishnamurthi (Brown University) The Book with quizzes and ownership visualizations. Free online
Comprehensive Rust Google Android team and contributors A course for experienced programmers, with speaker notes. Apache-2.0
Easy Rust David MacLeod Rust in simple English; good for non-native English speakers. Free online
Tour of Rust Richard Anaya and contributors Interactive step-by-step tour, like the Go Tour. Free online
Rustlings Rust community Small exercises with compiler feedback. MIT
100 Exercises to Learn Rust Luca Palmieri (Mainmatter) Progressive exercises from basics to async. Free online

Best pick: the Book plus Rustlings. If you have programmed for years, Comprehensive Rust is faster.

Intermediate and Advanced Rust

Book Author(s) Best for Access
Effective Rust David Drysdale 35 items on types, traits, concepts, dependencies and tooling. Free online; print is paid. Free online
Rust Atomics and Locks Mara Bos Low-level concurrency, memory ordering, building your own channels and locks. Free online from the author. Free online
Learning Rust With Entirely Too Many Linked Lists Alexis Beingessner and contributors Ownership and unsafe, learned through linked lists. Free online
Rust Design Patterns Rust community Idioms, patterns and anti-patterns. MPL-2.0
Rust Cookbook Rust community Recipes for common tasks using popular crates. CC0
The Rust Performance Book Nicholas Nethercote Profiling, allocation, inlining, build configuration. Free online
The Little Book of Rust Macros Daniel Keep, Lukas Wirth and contributors Declarative and procedural macros in depth. Free online
Command Line Applications in Rust Rust CLI working group Building, testing and distributing CLI tools. MIT / Apache-2.0
Learning Rust (QuineDot) QuineDot Deep notes on lifetimes, trait objects and common misconceptions. Free online
Rust Language Cheat Sheet Ralf Biedert Dense reference of syntax, types, memory layout and idioms. Free online

Async Rust

Embedded, Operating Systems and WebAssembly

Book Best for Access
The Embedded Rust Book no_std, peripherals, HALs on microcontrollers. Free
Discovery Hands-on embedded Rust with a micro:bit or similar board. Free
Writing an OS in Rust Build a small x86_64 kernel step by step (Philipp Oppermann). Free online
Rust for Linux Rust in the Linux kernel: docs and status. Free
Rust and WebAssembly book Classic wasm tutorial. Note: the rustwasm working group was archived in 2025, so some tooling it describes is no longer maintained. Free
Bevy learn Game development with the Bevy engine. Free

Rust Practice

Exercism Rust track, Rust Playground, Rustlings, awesome-rust for project ideas.

Book Why recommended Status
Programming Rust, 2nd ed. (Blandy, Orendorff, Tindall) Thorough and precise; great second book. Paid
Rust for Rustaceans (Jon Gjengset) Intermediate-to-advanced idioms and internals. Paid
Zero To Production In Rust (Luca Palmieri) Building a production web back end. Paid
Rust in Action (Tim McNamara) Systems projects in Rust. Paid

Comparison Tables

First Go resource

  Tour of Go Go by Example Learn Go with Tests Practical Go Lessons
Format Interactive Annotated examples Book with TDD Book with Q&A
Best for First day Quick lookup Real fundamentals Total beginners
Time 1-2 days 1-2 weeks 3-6 weeks 4-8 weeks

First Rust resource

  The Book Brown edition Comprehensive Rust Rustlings Easy Rust
Format Book Book plus quizzes Course slides and notes Exercises Simple-English book
Best for Everyone Self-checkers Experienced devs Hands-on learners Non-native English speakers
Time 4-8 weeks 4-8 weeks 4 days (+ extras) 1-3 weeks 3-6 weeks

Practice Projects for Both Languages

Build each in Go first (fast feedback), then in Rust (deeper understanding).

  1. wc, grep and cat clones with tests.
  2. A JSON-over-HTTP to-do API with a SQLite or Postgres store.
  3. A concurrent web crawler with bounded workers (goroutines vs Tokio tasks).
  4. A key-value store with a write-ahead log.
  5. A Redis-protocol server (follow the Tokio tutorial for Rust).
  6. A rate limiter library with benchmarks.
  7. A static site generator reading Markdown.
  8. A chat server with WebSockets.
  9. An interpreter for a tiny language.
  10. Rust only: implement a linked list safely and unsafely (Too Many Linked Lists), and a lock or channel from Rust Atomics and Locks.


FAQ

What is the best free book to learn Go? Start with the free official Tour of Go, then Learn Go with Tests or Go by Example. Read Effective Go once you can write small programs.

What is the best free book to learn Rust? The Rust Programming Language (“the Book”), free at doc.rust-lang.org. Use the Brown University edition if you want quizzes, and Rustlings for practice.

Is the Rust Book free? Yes, it is free online and installed with Rust (rustup doc --book). A print edition is sold by No Starch Press.

Is Go easier than Rust? Yes, for most people. Go has a small language and garbage collection. Rust’s ownership model takes several weeks to feel natural, but prevents whole classes of bugs.

Should I learn Go or Rust first? For back-end and cloud jobs, Go. For systems programming or if you know C/C++, Rust. Learning Go first then Rust is a common, comfortable path.

How long does it take to learn Rust? Expect 2-3 months part time to be comfortable with ownership, traits and error handling, and longer for async and unsafe.

Are there free Rust and Go courses with certificates? The resources here are free but most do not offer certificates. Comprehensive Rust and Exercism focus on skills rather than credentials.


Where to Go Next


Contributing

Open an issue or pull request with the official URL (no mirrors), license or access terms, the language version or edition, and one sentence on who it is best for. Dead links and books that stop being free get removed.

License

This list is released under CC BY 4.0. The books belong to their authors and projects under their own licenses.

If this helped you, a star helps others find it.

More free resources

Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.