Skip to content

Latest commit

 

History

History
 
 

episode1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Building a RESTful API with net/http

Watch The Screencast

Go in 5 Minutes, episode 1.

This screencast shows how to build a non-trivial HTTP API using nothing but net/http.

Screencast video: https://goin5minutes.com/screencast/episode_1_building_restful_api_using_only_std_lib/

Administrivia

  1. Request a Screencast
  2. Around the web

Outline

  1. Intro: orthogonal concerns
  • Routes
  • Handlers
  • Server
  1. Using ServeMux to register paths
  2. Writing handlers