更新时间:2021-08-27 19:02:00
封面
Title Page
Copyright and Credits
Go Web Development Cookbook
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
Creating Your First Server in Go
Introduction
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
Getting ready…
Writing data to a TCP connection
Implementing HTTP request routing
Implementing HTTP request routing using Gorilla Mux
Logging HTTP requests
Getting Ready…
Working with Templates Static Files and HTML Forms
Creating your first template
Serving static files over HTTP
Serving static files over HTTP using Gorilla Mux
Creating your first HTML form
Reading your first HTML form
Validating your first HTML form
Uploading your first file
Working with Sessions Error Handling and Caching in Go
Creating your first HTTP session
Managing your HTTP session using Redis
Creating your first HTTP cookie
Implementing caching in Go