Home›Library›Development

Curated Library

Go (Golang) Complete Course: Syntax, Types, Concurrency and HTTP Basics

A structured, 84-lesson walkthrough of Go that starts at installation and basic types, moves through control flow, functions, pointers, methods, interfaces and error handling, then covers modules, JSON, HTTP client and server basics, testing and a long concurrency section. It suits beginners, or programmers from other languages, who want a thorough grounding in the language and its standard library. Each concept is typically taught in a short theory lesson followed by a code-examples lesson.

  • 84 lessons
  • 13h 36m total
  • Development
  • English
  • Earns YodaCoins
Lessons byCode & Learn on YouTube

Curated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.

84 lessons13h 36m total
One block per lesson, sized by its length

What You'll Learn

  • Declare and use Go's core types, variables, constants and operators, including bitwise operations, arrays, slices, maps, strings, runes and structs
  • Control program flow with if, for, switch, labels, defer, and write functions that are variadic, first-class or closures
  • Use pointers, methods, value vs pointer receivers, embedding and interfaces, including type assertions and the nil-interface pitfall
  • Handle errors idiomatically with sentinel errors, wrapping, errors.Is/As, and panic/recover
  • Organise projects with modules and packages, and work with io.Reader/Writer, JSON (including custom marshalling) and the time package
  • Build basic HTTP clients and servers with Go 1.22 ServeMux routing, and write table-driven tests
  • Write concurrent programs with goroutines, WaitGroup, Mutex, channels, select, context and patterns such as pipelines and fan-in/fan-out

Prerequisites

  • No prior Go experience needed
  • Basic familiarity with using a code editor and terminal is helpful
  • Some general programming exposure is useful but not required

Course Curriculum

84 lessons · 13h 36m
  1. 01Installing Go and Writing Your First Program9:38
  2. 02Primitive Data Types: Booleans, Strings and Numbers9:46
  3. 03Integer Types: Signed, Unsigned, Bytes and Runes13:25
  4. 04Floats and Complex Numbers7:28
  5. 05The String Data Type9:33
  6. 06Variables11:33
  7. 07Constants10:43
  8. 08Identifiers and Keywords7:35
  9. 09Operators Overview (Part 1)9:18
  10. 10Operators and Precedence (Part 2)6:29
  11. 11Arithmetic Operators12:35
  12. 12Bitwise AND and OR Operators6:09
  13. 13Bitwise XOR, AND NOT and Invert6:23
  14. 14Bitwise Logical Operators in Practice8:17
  15. 15Bitwise Shift Operators9:42
  16. 16Bitwise Shift Operators in Practice9:15
  17. 17Arrays: Fundamentals7:39
  18. 18Arrays in Practice9:05
  19. 19Slices: How They Work10:01
  20. 20Slices in Practice9:45
  21. 21Slicing Slices and Arrays: Code Examples11:15
  22. 22Slice Expressions: Theory10:17
  23. 23Strings, Runes and Bytes6:19
  24. 24Strings, Runes and Bytes: Code Examples10:36
  25. 25Maps9:25
  26. 26Maps in Practice12:25
  27. 27Structs9:49
  28. 28Structs in Practice and Anonymous Structs8:50
  29. 29Conditionals: if, if-else and else-if7:33
  30. 30Conditionals in Practice7:31
  31. 31Code Blocks and Variable Shadowing10:33
  32. 32The for Loop16:48
  33. 33Control Flow: break, continue, Labels and goto14:00
  34. 34The switch Statement12:06
  35. 35Functions9:29
  36. 36Variadic Functions6:21
  37. 37First-Class Functions12:58
  38. 38Closures and Anonymous Functions9:17
  39. 39The defer Statement5:45
  40. 40Pointers12:15
  41. 41Common Uses of Pointers7:20
  42. 42Pointers in Practice10:37
  43. 43Call by Value, Maps and Slices13:01
  44. 44Types and Methods10:10
  45. 45Value vs Pointer Receivers8:21
  46. 46Functions vs Methods and Method Expressions9:32
  47. 47Type Derivation and iota8:33
  48. 48Embedding and Promotion7:35
  49. 49Interfaces10:23
  50. 50Empty Interface, Type Assertions and Type Switch8:44
  51. 51Why a Nil Interface Is Different3:14
  52. 52Error Handling Basics7:16
  53. 53Sentinel Errors, Wrapping and Unwrapping9:56
  54. 54Comparing Errors with errors.Is and errors.As7:58
  55. 55Panic and Recover7:11
  56. 56Go Modules and Dependency Management9:44
  57. 57Packages, Exports and Imports11:08
  58. 58Structuring Go Projects7:22
  59. 59The init Function and Blank Imports7:45
  60. 60io.Reader and io.Writer11:18
  61. 61JSON Marshal, Unmarshal, Encoding and Decoding13:52
  62. 62Custom JSON Marshalling and Unmarshalling11:52
  63. 63Working with Time8:43
  64. 64Making Requests with the HTTP Client9:25
  65. 65Building an HTTP Server11:11
  66. 66Request Routing with ServeMux (Go 1.22)7:12
  67. 67The context Package12:32
  68. 68Testing in Go15:27
  69. 69Concurrency Challenges9:01
  70. 70Deadlocks, Livelocks and Starvation12:25
  71. 71The Philosophy Behind Go Concurrency6:21
  72. 72The Go Scheduler and Goroutines8:34
  73. 73sync.WaitGroup6:49
  74. 74Mutex and RWMutex7:49
  75. 75sync.Cond7:56
  76. 76sync.Once4:50
  77. 77sync.Pool5:23
  78. 78Channels13:03
  79. 79select and for-select9:57
  80. 80Preventing Goroutine Leaks with a Done Channel6:46
  81. 81Error Handling in Goroutines8:11
  82. 82Streaming Data Pipelines33:00
  83. 83Fan-In and Fan-Out12:22
  84. 84Managing Goroutines with Context8:28

About the Instructor

Code & Learn

YouTube creator

84 lessons here 13h 36m

The lessons in this course were produced by Code & Learn and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Code & Learn is not affiliated with YodaHut.

Visit the channel on YouTube

More in the Library: Development