Creating Your First Server in Go

In this chapter, we will cover the following recipes:

  • Creating a simple HTTP server
  • Implementing basic authentication on a simple HTTP server
  • Optimizing HTTP server responses with GZIP compression
  • Creating a simple TCP server
  • Reading data from a TCP connection
  • Writing data to a TCP connection
  • Implementing HTTP request routing
  • Implementing HTTP request routing using Gorilla Mux
  • Logging HTTP requests

Get Go Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.