InterviewTreedInterviewTreed
All learning paths

Programming & Frameworks

Go & Rust

Prepare for Go and Rust programming, concurrency, memory management, systems development, backend services, and performance-oriented application design.

Your learning roadmap

Explore the key concepts

Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.

Go programming fundamentals

Understand Go's design philosophy, compiled execution model, package structure, and core language features. Learn how Go supports simple, efficient, and maintainable backend software.

Start learning

Go installation and project structure

Learn how to install Go, configure the development environment, initialize projects with go mod, and organize source files into packages. Understand the standard Go project layout and development workflow.

Start learning

Variables and constants

Explore variable declarations using var and short declaration syntax, along with constants and their scope. Understand zero values, type inference, and when to use mutable variables or immutable constants.

Start learning

Data types and type conversions

Study Go's basic data types, including integers, floating-point numbers, strings, booleans, and complex values. Learn explicit type conversions, type compatibility, and how Go handles numeric operations.

Start learning

Pointers in Go

Understand pointers, memory addresses, dereferencing, and pointer variables in Go. Learn how pointers allow functions and methods to modify shared data without copying entire values.

Start learning

Arrays and slices

Learn the differences between fixed-length arrays and dynamically sized slices. Explore slice creation, indexing, slicing, append, copy, capacity, and the relationship between slices and their underlying arrays.

Start learning

Maps

Understand Go maps as key-value data structures. Learn how to create, access, update, delete, and iterate over map entries, check key existence, and use maps safely in application code.

Start learning

Structs and methods

Explore structs as Go's primary way to group related data. Learn how to define struct types, initialize fields, use methods, and choose between value and pointer receivers.

Start learning

Interfaces and interface composition

Understand Go's implicit interface implementation and structural typing. Learn how interfaces define behavior, how types satisfy interfaces automatically, and how smaller interfaces can be composed into larger contracts.

Start learning

Embedding in Go

Learn how anonymous fields and embedded types promote fields and methods in Go. Understand composition through struct embedding, interface embedding, method promotion, and how embedding differs from classical inheritance.

Start learning

Functions and multiple return values

Study function declarations, parameters, return types, named return values, and multiple return values. Learn how Go functions support error-returning conventions and clear separation of application logic.

Start learning

Closures and anonymous functions

Understand anonymous functions and closures in Go. Learn how functions can capture variables from surrounding scopes, how captured state behaves, and where closures are useful in callbacks and concurrent code.

Start learning

Error handling in Go

Learn Go's explicit error-handling approach using the built-in error interface. Explore error returns, checking errors, wrapping with contextual information, and creating custom error types.

Start learning

Defer, panic, and recover

Understand deferred function execution and its last-in-first-out behavior. Learn how panic and recover work, when recovery is appropriate, and how defer helps release resources and maintain predictable cleanup.

Start learning

Packages and modules

Explore Go packages, import paths, exported identifiers, and package visibility rules. Understand how modules organize application dependencies and how source files are grouped into reusable units.

Start learning

Go dependency management

Learn how Go modules manage external dependencies and versioning. Explore go.mod, go.sum, go get, go mod tidy, dependency upgrades, and reproducible builds.

Start learning

Goroutines

Understand goroutines as lightweight concurrent execution units managed by the Go runtime. Learn how to start goroutines, coordinate their work, and avoid common lifecycle and synchronization problems.

Start learning

Channels and channel directions

Learn how channels communicate values between goroutines. Explore sending and receiving operations, channel types, directional channels, closing channels, and safe communication patterns.

Start learning

Buffered and unbuffered channels

Compare buffered and unbuffered channels and understand how their capacity affects communication and synchronization. Learn when sends block, how receives behave, and how channel buffering influences program flow.

Start learning

Select statement

Understand Go's select statement for handling multiple channel operations. Learn how select chooses ready cases, how default cases work, and how to implement timeouts and non-blocking communication.

Start learning

Concurrency patterns

Explore practical Go concurrency patterns such as worker pools, fan-out, fan-in, pipelines, and producer-consumer workflows. Learn how to coordinate goroutines and manage cancellation and failures.

Start learning

Mutexes and synchronization

Learn how sync.Mutex and sync.RWMutex protect shared data from concurrent access. Understand critical sections, lock management, deadlocks, and alternatives to shared-memory synchronization.

Start learning

WaitGroups and context package

Understand sync.WaitGroup for waiting on groups of goroutines and the context package for cancellation, deadlines, and request-scoped values. Learn how to coordinate concurrent tasks and propagate cancellation.

Start learning

Race conditions and race detection

Study race conditions, data races, and synchronization errors in concurrent Go applications. Learn how to use the Go race detector, interpret reports, and fix unsafe shared-memory access.

Start learning

Go garbage collection

Understand Go's garbage collector, heap object tracking, and automatic memory reclamation. Explore garbage collection cycles, allocation pressure, latency considerations, and runtime memory metrics.

Start learning

Memory allocation and escape analysis

Learn how Go allocates values on the stack and heap. Understand escape analysis, compiler decisions, allocation behavior, and how to inspect escape-analysis output when optimizing memory usage.

Start learning

Go HTTP server development

Learn how to build HTTP servers using Go's net/http package. Explore handlers, routing, request and response objects, server configuration, timeouts, and graceful shutdown.

Start learning

REST API development with Go

Understand how to design and implement REST APIs in Go. Learn resource-oriented endpoints, HTTP methods, status codes, JSON encoding, validation, and consistent API response structures.

Start learning

Middleware and request handling

Explore HTTP middleware and request processing in Go. Learn how to implement authentication, logging, CORS, request IDs, recovery, and other cross-cutting concerns using handler composition.

Start learning

Database connectivity in Go

Learn how Go applications communicate with relational databases using database/sql and database drivers. Explore connection pooling, queries, prepared statements, transactions, scanning results, and resource cleanup.

Start learning

Unit testing in Go

Understand Go's testing package and conventions for writing reliable unit tests. Learn test functions, table-driven tests, subtests, test fixtures, assertions, and testing application errors.

Start learning

Benchmarking and profiling

Learn how to measure Go application performance with benchmarks and profiling tools. Explore testing.B, CPU and memory profiles, pprof, execution traces, and evidence-based performance analysis.

Start learning

Go performance optimization

Explore practical techniques for improving Go application performance. Learn to reduce unnecessary allocations, optimize data structures, manage concurrency, profile bottlenecks, and evaluate changes with benchmarks.

Start learning

Rust programming fundamentals

Understand Rust's systems programming philosophy, compiled execution model, strong type system, and memory safety guarantees. Learn how Rust combines low-level control with protection against common memory errors.

Start learning

Rust installation and Cargo

Learn how to install Rust using rustup and manage toolchains. Explore Cargo for creating projects, building applications, running tests, managing dependencies, and organizing Rust packages and workspaces.

Start learning

Variables and mutability

Understand Rust's immutable-by-default variables, mutable bindings, constants, and variable shadowing. Learn how mutability affects ownership, reassignment, and safe state management.

Start learning

Primitive and compound data types

Explore Rust's scalar types, including integers, floating-point values, booleans, and characters, along with compound types such as tuples and arrays. Understand type inference and explicit annotations.

Start learning

Ownership

Understand Rust's ownership model and its rules for managing memory without a garbage collector. Learn ownership transfer, move semantics, copying, scope-based cleanup, and how ownership prevents invalid memory access.

Start learning

Borrowing and references

Learn how borrowing allows code to access values without taking ownership. Explore immutable and mutable references, borrowing rules, reference validity, and how the borrow checker prevents unsafe aliasing.

Start learning

Lifetimes

Understand Rust lifetimes and how they describe the validity of references. Learn lifetime annotations, lifetime relationships, elision rules, and how the compiler checks that references never outlive their data.

Start learning

Slices and strings

Explore slices as references to contiguous sequences of data and understand Rust's string types. Learn the differences between String and str, string ownership, UTF-8 handling, and safe string manipulation.

Start learning

Structs and enums

Learn how Rust structs model custom data and how enums represent values with multiple variants. Explore tuple structs, unit structs, associated data, and the use of custom types to represent domain concepts.

Start learning

Pattern matching with match

Understand Rust's match expression for exhaustive pattern matching. Learn how to match enum variants, destructure values, use guards, handle Option and Result, and write expressive control flow.

Start learning

Methods and associated functions

Explore methods defined within Rust impl blocks. Learn the difference between methods that use self and associated functions, constructor conventions, method receivers, and how behavior is organized around types.

Start learning

Traits and trait bounds

Understand traits as Rust's mechanism for defining shared behavior. Learn how to implement traits, use trait bounds, combine multiple bounds, and write reusable functions that operate on different types.

Start learning

Generics in Rust

Learn how Rust generics support reusable functions, structs, enums, and methods. Explore generic parameters, trait constraints, monomorphization, and compile-time type checking.

Start learning

Option and Result types

Understand Option for representing optional values and Result for representing success or failure. Learn Some, None, Ok, Err, pattern matching, and how these types make error-prone states explicit.

Start learning

Error handling in Rust

Explore Rust's error-handling mechanisms using Result, Option, the question-mark operator, and custom error types. Learn how to propagate failures, distinguish recoverable errors, and handle application-level exceptions.

Start learning

Modules and packages

Understand Rust's module system and package organization. Learn crates, modules, paths, visibility rules, use declarations, re-exports, and how to structure maintainable multi-module applications.

Start learning

Collections in Rust

Explore Rust's standard collections, including Vec, HashMap, and HashSet. Learn how to create, access, modify, iterate over, and choose appropriate collection types for different data-management requirements.

Start learning

Iterators and closures

Understand Rust closures, iterator traits, and lazy evaluation. Learn map, filter, fold, collect, iterator adapters, ownership capture, and how functional-style operations process collections efficiently.

Start learning

Smart pointers

Learn how Rust smart pointers provide ownership and memory-management behavior beyond ordinary references. Understand Deref and Drop, heap allocation, shared ownership, and when smart pointers are appropriate.

Start learning

Box, Rc, Arc, and RefCell

Explore Box for heap allocation, Rc for single-threaded shared ownership, Arc for thread-safe reference counting, and RefCell for runtime borrow checking. Understand their trade-offs and common combinations.

Start learning

Memory safety

Understand how Rust's ownership system, borrowing rules, lifetimes, and type system prevent dangling pointers, use-after-free errors, and data races in safe Rust. Learn the distinction between compile-time guarantees and unsafe operations.

Start learning

Stack and heap allocation

Learn how Rust values are stored on the stack and heap. Explore ownership of heap-allocated data, Box, collection allocation, memory layout, and how allocation choices affect performance.

Start learning

Concurrency and parallelism in Rust

Understand Rust's concurrency and parallelism model, including threads, ownership transfer, Send, and Sync. Learn how the type system helps prevent data races while enabling safe concurrent execution.

Start learning

Threads and message passing

Learn how to create and manage threads using Rust's standard library. Explore thread spawning, joining, move closures, message passing with channels, and transferring ownership between threads.

Start learning

Mutexes and shared state

Understand shared mutable state in Rust using Mutex and other synchronization primitives. Learn how Arc and Mutex work together, how locking protects data, and how to avoid deadlocks and lock contention.

Start learning

Async programming in Rust

Explore asynchronous programming in Rust and understand how async functions and executors support non-blocking operations. Learn when async is useful for network services and concurrent I/O workloads.

Start learning

Futures and async/await

Futures and async/await: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

Rust web development

Explore web application development in Rust using its ecosystem of web frameworks and supporting libraries. Understand routing, request handling, serialization, middleware, application state, and service architecture.

Start learning

REST API development with Rust

Learn how to build REST APIs in Rust using web frameworks and serialization libraries. Explore route definitions, HTTP methods, JSON payloads, request validation, error responses, and API testing.

Start learning

Testing in Rust

Understand Rust's built-in testing support and Cargo test workflow. Learn unit tests, integration tests, documentation tests, assertions, test modules, and techniques for testing application behavior.

Start learning

Macros in Rust

Explore Rust declarative macros using macro_rules! and procedural macros. Understand token matching, macro expansion, derive macros, attribute macros, and how macros reduce repetitive code.

Start learning

Unsafe Rust

Understand unsafe Rust and the operations that require explicit unsafe blocks. Learn raw pointers, unsafe functions, mutable static variables, foreign function interfaces, and how to keep unsafe code isolated and auditable.

Start learning

Rust performance optimization

Learn how to analyze and improve Rust application performance. Explore compiler optimizations, allocation behavior, ownership-aware design, benchmarking, profiling, and the trade-offs between performance and maintainability.

Start learning

Go vs Rust: architecture and trade-offs

Compare Go and Rust across language design, memory management, concurrency, error handling, performance, tooling, and deployment. Understand how their architectural strengths and trade-offs influence technology choices for backend services and systems software.

Start learning

Practice & revise

Interview questions

Practice interview questions with answers, key points, and practical examples.

Test your knowledge

Explore 80 questions for this topic, covering concepts, practical examples, and interview scenarios.

Browse 80 questions

Keep learning step by step

Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.

Explore another learning path