Syllabus

  1. 01Go BasicsMeet Go, see how a Go program is structured, compiled and run, and learn about packages, imports and comments.7 lessons
    1. 01Meet Go
    2. 02Compiling and Running
    3. 03Reading Compiler Errors
    4. 04Packages and Imports
    5. 05Comments and Documentation
    6. 06Project: ASCII Postcard
    7. 07Quiz: Go Basics
  2. 02Variables and TypesStore values in typed variables and constants, learn Go's basic types and their zero values, calculate with numbers and convert between types.7 lessons
    1. 01Values and Types
    2. 02Declaring Variables
    3. 03Zero Values
    4. 04Constants
    5. 05Numbers and Conversions
    6. 06Project: Paint Estimate
    7. 07Quiz: Variables and Types
  3. 03Formatting with fmtPrint exactly what you mean with the fmt package: Print, Println and Printf, formatting verbs and widths, building strings with Sprintf, and scanning values from text.6 lessons
    1. 01Print and Println
    2. 02Printf and Verbs
    3. 03Building Strings with Sprintf
    4. 04Reading Values with Scan
    5. 05Project: Game Leaderboard
    6. 06Quiz: Formatting with fmt
  4. 04ConditionalsMake decisions in Go with if, else and else if, comparison and logical operators, if statements with a short statement, and switch.6 lessons
    1. 01If and Else
    2. 02Logical Operators
    3. 03If with a Short Statement
    4. 04Switch
    5. 05Project: Parking Garage Fees
    6. 06Quiz: Conditionals
  5. 05FunctionsWrite your own Go functions: parameters and return values, multiple results and errors, scope, and deferred calls.6 lessons
    1. 01Defining Functions
    2. 02Parameters and Results
    3. 03Multiple Results and Errors
    4. 04Scope and Defer
    5. 05Project: Shipping Estimator
    6. 06Quiz: Functions
  6. 06Addresses and PointersLearn where values live in memory, how pointers store addresses, and how passing a pointer lets a function change the caller's variable.4 lessons
    1. 01Addresses
    2. 02Pointers
    3. 03Pointers and Functions
    4. 04Quiz: Addresses and Pointers
  7. 07Structs, Methods and InterfacesGroup data in structs, attach behavior with methods, and write flexible code with interfaces, type assertions and type switches.5 lessons
    1. 01Structs and Methods
    2. 02Interfaces
    3. 03Type Assertions and Type Switches
    4. 04Project: Smart Home Hub
    5. 05Quiz: Structs, Methods and Interfaces