Module 10 of 12

Web APIs & Databases

Lessons

About This Module

Go is widely used for backend services, and it is well suited to them: the standard library includes a production-quality HTTP server, and the language handles many simultaneous requests naturally. This module puts the earlier material to work on a real kind of program.

It starts with a simple HTTP server and how handlers respond to requests. It then builds a REST API using the standard library, and moves on to databases: connecting with the database/sql package and performing SQL CRUD operations and transactions.

Watch the lessons in order and build along, since this module is easiest to learn by making a small working service, then continue on to Testing, Tooling & Profiling.

Lessons

4 videos
01

Build a Simple HTTP Server in Go

Creating a basic HTTP server in Go and responding to requests with handlers.

02

Building a RESTful API in Go Using Only the Standard Library (Episode 1)

Starting a REST API in Go with nothing but the standard library, no framework required.

03

Go: SQL Databases in Golang with the database/sql package

Working with SQL databases from Go through the standard database/sql package.

04

Go + SQL: CRUD Operations & Database Transactions for Beginners

Creating, reading, updating and deleting data with SQL from Go, and grouping changes into transactions.