Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Preface

Acknowledgments

About this Book

About the Cover Illustration

1. Go and web applications

Chapter 1. Go and web applications

1.1. Using Go for web applications

1.1.1. Scalable web applications and Go

1.1.2. Modular web applications and Go

1.1.3. Maintainable web applications and Go

1.1.4. High performing web applications and Go

1.2. How web applications work

1.3. A quick introduction to HTTP

1.4. The coming of web applications

1.5. HTTP request

1.5.1. Request methods

1.5.2. Safe request methods

1.5.3. Idempotent request methods

1.5.4. Browser support for request methods

1.5.5. Request headers

1.6. HTTP response

1.6.1. Response status code

1.6.2. Response headers

1.7. URI

1.8. Introducing HTTP/2

1.9. Parts of a web app

1.9.1. Handler

1.9.2. Template engine

1.10. Hello Go

1.11. Summary

Chapter 2. Go ChitChat

2.1. Let���s ChitChat

2.2. Application design

2.3. Data model

2.4. Receiving and processing requests

2.4.1. The multiplexer

2.4.2. Serving static files

2.4.3. Creating the handler function

2.4.4. Access control using cookies

2.5. Generating HTML responses with templates

2.5.1. Tidying up

2.6. Installing PostgreSQL

2.6.1. Linux/FreeBSD

2.6.2. Mac OS X