
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 16-lesson course built from Tiago's 2h 50m of YouTube video. 2 days at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by Tiago on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Understand the course scope, the Goofer social network project, and the full curriculum from basics to deployment.
Apply REST constraints—client-server decoupling, statelessness, cacheability, uniform interface, and resource naming—to design a RESTful API.
Describe how TCP provides reliable, ordered delivery over IP and use Go's net package to create a TCP listener.
Implement manual routing with net/http, encode and decode JSON payloads, and apply basic request validation in handlers.
Organize code into transport, service, and storage layers with dependency inversion to achieve loose coupling and testability.
Load configuration from environment variables with fallback defaults using a custom env package and the direnv CLI tool.
Decouple business logic from storage by defining repository interfaces, implementing Postgres and in-memory variants, and injecting them via constructors.
Write concrete Postgres repository methods for users and posts, using database/sql to execute queries and scan results into domain structs.
Define User and Post models with JSON tags, write INSERT queries returning generated IDs, and handle scanning of timestamps and array fields.
Create a configurable database connection pool with DSN, max open/idle connections, and timeouts loaded from environment variables.
Set up golang-migrate, create versioned migration files for users and posts tables, add foreign keys, and run migrations against a local Postgres instance.