Aller au contenu principal
Academind
Tous les cours

Cours Academind Pro

Go - The Complete Guide

Learn Go ("Golang") from the ground up & in great depth by building multiple demo projects, incl. a REST API

  • 12 sections · 196 leçons
  • 15 h et 18 min au total

À propos de ce cours

You’ve skimmed a few Go tutorials, maybe copied some snippets, and still feel unsure what “idiomatic Go” actually looks like when you sit down to write real code. The language feels simple—until you hit data modeling, errors, and concurrency and everything gets fuzzy.

This course gives you a structured path through Go that doesn’t stop at syntax. You’ll build understanding step by step, then reinforce it by applying concepts in multiple demo projects—so the ideas stick when you’re working on your own backend services.

By the end, you’ll be able to design and implement complete Go programs with confidence: organize code into packages, model data cleanly, handle failures predictably, and ship a working backend service that connects to a SQL database and protects endpoints with authentication.

Ce que vous allez apprendre

You’ll go beyond “hello world” and learn the Go patterns you need to write maintainable programs, handle real data, and build production-style backend features.

  1. 01

    Write core Go code

    Build programs using Go’s values, variables, types, and control structures, and confidently compose logic with functions—so you can turn requirements into working code without guesswork.

  2. 02

    Use pointers effectively

    Work with pointers to control how data is passed and updated, and avoid common pitfalls when you need shared state or efficient updates across functions.

  3. 03

    Model data structures

    Structure and store data with struct types, arrays, slices, and maps, choosing the right shape for the job and manipulating collections cleanly and safely.

  4. 04

    Build concurrent workflows

    Implement concurrent execution with goroutines and coordinate work using channels, so you can design Go programs that handle multiple tasks efficiently.

  5. 05

    Design with interfaces

    Use interfaces to decouple components and write flexible code that’s easier to extend and test, while keeping implementations clean and focused.

  6. 06

    Handle errors and packages

    Apply Go-style error handling and organize code with packages, so your projects stay readable, scalable, and easier to maintain as they grow.

Prérequis

  • Basic programming experience in any language is strongly recommended.

  • No prior Go knowledge is required.

À qui s’adresse ce cours

  • New Go learners

    You’re new to Go and want more than quick snippets—you want a deep understanding that helps you write your own programs without constantly searching for patterns.

  • Working developers

    You already code in another language and want to add Go to your toolkit for backend development, cloud services, or performance-focused applications.

  • Go refreshers

    You’ve started with Go before (or used it at work) but feel gaps in fundamentals or confidence, and you want a thorough, practical reset.

Programme

Découvrez la structure et le rythme de ce cours avant de commencer.

  1. 1Getting Started8 leçons · 13 min
    1. 01Welcome To The Course!1:05 min
    2. 02What Is Go? And Why Is It Awesome?1:48 min
    3. 03Installing Go (Alternative: Web-based Setup)1:49 min
    4. 04Local Code Editor Setup For Go Development1:41 min
    5. 05Writing a First Go Program2:03 min
    6. 06About The Course & Course Content1:23 min
    7. 07How To Get The Most Out Of This Course3:23 min
    8. 08Join Our Learning Community0:00 min
  2. 2Go Essentials44 leçons · 3 h et 16 min
    1. 01Module Introduction1:16 min
    2. 02Working with Functions & Values3:47 min
    3. 03Organizing Code with Packages3:53 min
    4. 04The Important Of The Name "main"1:53 min
    5. 05Understanding Go Modules & Building Go Programs4:33 min
    6. 06The "main" Function Is Important!3:53 min
    7. 07Onwards To A New Project2:22 min
    8. 08Working with Variables, Values & Operators5:35 min
    9. 09Understanding Value Types5:21 min
    10. 10Go Types & Null Values0:00 min
    11. 11Outputting Values3:13 min
    12. 12Type Conversions & Explicit Type Assignment4:21 min
    13. 13Using Alternative Variable Declaration Styles5:27 min
    14. 14Making Sense of Constant Values ("Constants")4:29 min
    15. 15Understanding the Importance Of Variables6:32 min
    16. 16Improved User Input Fetching5:22 min
    17. 17fmt.Scan() Limitations0:00 min
    18. 18Exercise: Building a Profit Calculator1:18 min
    19. 19Exercise Solution8:13 min
    20. 20Formatting Strings (Text) - Basics7:29 min
    21. 21Formatting Floats in Strings2:41 min
    22. 22Creating Formatted Strings3:45 min
    23. 23Building Multiline Strings2:26 min
    24. 24Understanding Functions9:04 min
    25. 25Functions: Return Values & Variable Scope11:07 min
    26. 26An Alternative Return Value Syntax2:31 min
    27. 27Exercise: Working with Functions8:59 min
    28. 28Onwards to Control Structures5:28 min
    29. 29Introducing "if" Statements & Booleans5:51 min
    30. 30Working with "else if"4:21 min
    31. 31Exercise: "if" Statements2:04 min
    32. 32Using "else"2:02 min
    33. 33Nested "if" Statements & Using "return" To Stop Function Execution4:51 min
    34. 34Repeating Code With "for" Loops4:03 min
    35. 35Infinite Loops, "break" & "continue"4:59 min
    36. 36Conditional For Loops0:00 min
    37. 37Making Sense of "switch" Statements5:18 min
    38. 38Writing To Files6:08 min
    39. 39Reading From Files6:47 min
    40. 40Handling Errors8:01 min
    41. 41Time to Panic!2:04 min
    42. 42Section Exercise - The Task1:44 min
    43. 43Section Exercise - Solution11:29 min
    44. 44Module Summary1:08 min
  3. 3Working with Packages9 leçons · 24 min
    1. 01Module Introduction0:54 min
    2. 02Splitting Code Across Files In The Same Package4:19 min
    3. 03Why Would You Use More Than One Package?1:32 min
    4. 04Preparing Code For Multiple Packages3:41 min
    5. 05Splitting Code Across Multiple Packages2:41 min
    6. 06Importing Packages1:37 min
    7. 07Exporting & Importing Identifiers (Variables, Functions & More)2:36 min
    8. 08Using Third-Party Packages5:36 min
    9. 09Module Summary1:00 min
  4. 4Understanding Pointers10 leçons · 23 min
    1. 01Module Introduction0:30 min
    2. 02Understanding Pointers6:04 min
    3. 03Writing Code Without Pointers3:17 min
    4. 04Creating a Pointer1:39 min
    5. 05A Pointer's Null Value0:00 min
    6. 06Pointers as Values1:56 min
    7. 07Using Pointers & Passing Pointers To Functions3:28 min
    8. 08Using Pointers For Data Mutation4:08 min
    9. 09Example: The Scan() Function Uses Pointers0:59 min
    10. 10Module Summary0:34 min
  5. 5Structs & Custom Types25 leçons · 1 h et 49 min
    1. 01Module Introduction1:07 min
    2. 02The Starting Project0:53 min
    3. 03Which Problem Do Structs Solve?2:27 min
    4. 04Defining A Struct Type4:43 min
    5. 05Instantiating Structs & Struct Literal Notation3:28 min
    6. 06Alternative Struct Literal Notation & Struct Null Values2:24 min
    7. 07Passing Struct Values As Arguments2:33 min
    8. 08Structs & Pointers3:21 min
    9. 09Introducing Methods4:28 min
    10. 10Mutation Methods6:02 min
    11. 11Using Creation / Constructor Functions4:56 min
    12. 12Using Constructor Functions For Validation4:52 min
    13. 13Structs, Packages & Exports5:20 min
    14. 14Exposing Methods & A Different Constructor Function Name5:38 min
    15. 15Struct Embedding7:56 min
    16. 16Structs - A Summary2:57 min
    17. 17Creating Other Custom Types & Adding Methods5:16 min
    18. 18Practice Project: Getting User Input7:35 min
    19. 19Practice Project: Creating a Struct & Constructor Function7:17 min
    20. 20Practice Project: Adding a Method3:34 min
    21. 21Practice Project: Handling Long User Input Text6:13 min
    22. 22Practice Project: Preparing Save To File Functionality4:14 min
    23. 23Practice Project: Encoding JSON Content5:15 min
    24. 24Practice Project: Fixes2:13 min
    25. 25Understanding Struct Tags4:17 min
  6. 6Interfaces & Generic Code11 leçons · 44 min
    1. 01Module Introduction0:25 min
    2. 02Preparing An Interface Use-Case3:36 min
    3. 03Finishing Interface Preparations3:10 min
    4. 04Creating a First Interface5:16 min
    5. 05Using The Interface5:16 min
    6. 06Embedded Interfaces6:09 min
    7. 07The Special "Any Value Allowed" Type2:07 min
    8. 08Working with Type Switches3:36 min
    9. 09Extracting Type Information From Values5:13 min
    10. 10Interfaces, Dynamic Types & Limitations3:57 min
    11. 11Introducing Generics5:31 min
  7. 7Managing Related Data with Arrays, Slices & Maps17 leçons · 1 h et 43 min
    1. 01Introducing Arrays8:02 min
    2. 02Module Introduction1:19 min
    3. 03Working with Arrays6:20 min
    4. 04Selecting Parts of Arrays With Slices3:25 min
    5. 05More Ways Of Selecting Slices4:29 min
    6. 06Diving Deeper Into Slices9:41 min
    7. 07Building Dynamic Lists With Slices9:23 min
    8. 08Exercise - Problem4:12 min
    9. 09Exercise - Solution19:59 min
    10. 10Unpacking List Values3:29 min
    11. 11Introducing Maps6:42 min
    12. 12Mutating Maps3:43 min
    13. 13Maps vs Structs3:59 min
    14. 14Using The Special "make" Function7:10 min
    15. 15"make"ing Maps3:08 min
    16. 16Working with Type Aliases2:33 min
    17. 17For Loops with Arrays, Slices & Maps5:24 min
  8. 8Functions: Deep Dive8 leçons · 57 min
    1. 01Module Introduction1:04 min
    2. 02Functions as Values & Function Types15:07 min
    3. 03Returning Functions As Values6:20 min
    4. 04Introducing Anonymous Functions6:34 min
    5. 05Understanding Closures6:44 min
    6. 06Making Sense Of Recursion11:22 min
    7. 07Using Variadic Functions6:49 min
    8. 08Splitting Slices Into Parameter Values3:04 min
  9. 9Practice Project: Price Calculator16 leçons · 1 h et 28 min
    1. 01Module Introduction1:45 min
    2. 02Building a First, Basic Version Of The Program9:45 min
    3. 03Setting Up A First Struct3:40 min
    4. 04Adding a Constructor Function3:05 min
    5. 05Adding a Method7:08 min
    6. 06Loading Data From A File8:13 min
    7. 07Working With The File Data7:13 min
    8. 08Outsourcing Sharable Logic Into A Package5:27 min
    9. 09Outsourcing File Access Into A Package5:39 min
    10. 10Storing JSON Data In Files8:35 min
    11. 11Adding a FileManager Struct8:16 min
    12. 12Adding & Using Struct Tags2:46 min
    13. 13Working on a Swappable Struct7:55 min
    14. 14Interfaces To The Rescue4:28 min
    15. 15Error Handling2:53 min
    16. 16Module Summary1:13 min
  10. 10Concurrency - Running Tasks In Parallel10 leçons · 42 min
    1. 01Introducing Goroutines1:43 min
    2. 02Module Introduction0:52 min
    3. 03Running Functions As Goroutines3:18 min
    4. 04Understanding Goroutine Behavior1:42 min
    5. 05Introducing & Using Channels4:28 min
    6. 06Working with Multiple Channels & Goroutines8:34 min
    7. 07Goroutines & Channels in a Project9:57 min
    8. 08Setting Up An Error Channel3:27 min
    9. 09Managing Channels with the "select" Statement5:46 min
    10. 10Deferring Code Execution with "defer"2:38 min
  11. 11Course Project: Build a REST API (incl. Authentication & SQL Database)37 leçons · 3 h et 38 min
    1. 01Module Introduction1:27 min
    2. 02Planning The API4:09 min
    3. 03Installing the Gin Framework2:17 min
    4. 04Setting Up A First Route & Handling a First Request11:54 min
    5. 05Setting Up An Event Model4:05 min
    6. 06Registering a POST Route8:45 min
    7. 07Testing Requests & Fixing the POST Request Handler7:01 min
    8. 08Adding a SQL Database8:27 min
    9. 09Creating A SQL Database Table5:49 min
    10. 10Storing Data in the Database (INSERT)6:32 min
    11. 11Preparing Statements vs Directly Executing Queries (Prepare() vs Exec()/Query())0:00 min
    12. 12Getting Events From Database (SELECT)8:31 min
    13. 13Getting Single Event Data By ID12:09 min
    14. 14Refactoring Code & Outsourcing Routes4:01 min
    15. 15Registering an "Update Event" Route & Handler4:46 min
    16. 16Updating Events8:00 min
    17. 17Deleting Events5:49 min
    18. 18Adding a "Users" Table To The SQL Database4:14 min
    19. 19Adding User Signup8:31 min
    20. 20Don't Store Plain-text Passwords!1:18 min
    21. 21Hashing Passwords5:01 min
    22. 22Getting Started with Auth Tokens (JWT)2:23 min
    23. 23Getting Started with the Login Route10:25 min
    24. 24Finishing The Login Logic5:12 min
    25. 25Generating JWT7:53 min
    26. 26Finishing The JWT Logic4:22 min
    27. 27Adding Token Verification14:32 min
    28. 28Adding Route Protection5:16 min
    29. 29Retrieving & Storing User and Event IDs7:59 min
    30. 30Adding an Authentication Middleware3:51 min
    31. 31Enhancing & Using The Middleware7:27 min
    32. 32Adding Authorization To Restrict Users From Editing & Deleting5:58 min
    33. 33Adding a Registrations Table3:02 min
    34. 34Registering Users7:39 min
    35. 35Testing & Fixing the "Register" Route2:49 min
    36. 36Cancelling Registrations5:19 min
    37. 37Module Summary1:01 min
  12. 12Course Roundup1 leçon · 1 min
    1. 01Course Roundup0:50 min

Prêt à commencer ?

Achetez ce cours sur Academind Pro, ou obtenez tous les cours avec All Access sur Academind Infinite.

Black Friday : un an d’All Access pour 249 $US 249 $US · seulement jusqu’au Profitez de l’offre
  • Ce cours sur Academind Pro

    99 $USpaiement unique

    TVA incluse · Satisfait ou remboursé pendant 30 jours

    • Accès à vie à ce cours
    • Toutes les futures mises à jour de ce cours
    • Ressources téléchargeables, code et un certificat
    Acheter Go
  • All Access sur Academind Infinite

    25 $USpar mois

    ou 249 $US 249 $US par anÉconomisez 17 %

    • Tous les cours, avec toutes leurs fonctionnalités
    • Les nouveaux cours dès leur sortie
    • Votre tuteur, avec toutes ses fonctionnalités
    Obtenir All Access

All Access inclut aussi tous les cours Academind Pro.

Academind Pro et Academind Infinite

Deux plateformes distinctes, chacune avec ses propres cours et sa propre connexion.

Academind Pro

Notre plateforme de cours d’origine, sur pro.academind.com. Votre abonnement Pro et les cours que vous y avez achetés restent sur Pro.

Se connecter à Academind Pro

Academind Infinite

Notre nouvelle plateforme pensée pour l’IA. Les membres Pro se connectent avec leur compte Pro, et l’offre Pro All Access inclut Infinite : tous les cours leur sont ouverts.

Se connecter à Academind Infinite

Vous aviez un compte Pro ou avez acheté un cours sur Pro ?

Tous les cours Pro ne sont pas passés sur Infinite, seulement ceux-ci. Choisissez le vôtre pour le voir sur Infinite.