Mastering Go Web Services
- Length: 320 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2015-04-30
- ISBN-10: 178398130X
- ISBN-13: 9781783981304
- Sales Rank: #3779620 (See Top 100 Books)
Program and deploy fast, scalable web services and create high-performance RESTful APIs using Go
About This Book
- Effectively deploy and integrate Go web services with applications in the real world
- Familiarize yourself with RESTful practices and apply them in Go
- A comprehensive tutorial with lots of tips and tricks to program and develop web services in Go
Who This Book Is For
If you are a web programmer with experience in developing web services and have a rudimentary knowledge of using Go, then this is the book for you. Basic knowledge of Go as well as knowledge of relational databases and non-relational NoSQL datastores is assumed. Some basic concurrency knowledge is also required.
What You Will Learn
- Familiarize yourself with RESTful practices and apply them in Go
- Acquaint yourself with the best practices for API design such as URL routing and HTTP response methods
- Utilize useful middleware and frameworks to augment applications otherwise relying on pure Go
- Understand the basic and complex authentication models for APIs
- Deploy your code to staging and development environments
- Look at ways to make your Go web services as speedy and thrifty as possible
- Secure your web services
- Ingest your own API and make it appealing to other developers
In Detail
This book will take you through the most important aspects of designing, building, and deploying a web service utilizing idiomatic REST practices with a focus on speed, security, and flexibility. You will begin by building your first API in Go using the HTTP package. You will look at designing and building your application including popular design structures like Model-View-Controller. You will also understand methods for deploying code to staging and development. Finally, you will see how the security features in Go can be used for protection against SQL injection, and sensitive data compromise.
By the end of this book, you will have achieved a high level of proficiency in building and deploying web services and web APIs with Go.
Table of Contents
Chapter 1: Our First API in Go
Chapter 2: RESTful Services in Go
Chapter 3: Routing and Bootstrapping
Chapter 4: Designing APIs in Go
Chapter 5: Templates and Options in Go
Chapter 6: Accessing and Using Web Services in Go
Chapter 7: Working with Other Web Technologies
Chapter 8: Responsive Go for the Web
Chapter 9: Deployment
Chapter 10: Maximizing Performance
Chapter 11: Security