Learning Go Web Development

Build frontend-to-backend web applications using the best practices of a powerful, fast, and easy-to-deploy server language
Preview in Mapt

Learning Go Web Development

Nathan Kozyra

1 customer reviews
Build frontend-to-backend web applications using the best practices of a powerful, fast, and easy-to-deploy server language
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $23.99
Save 58%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$29.99
$29.99 p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Learning Go Web Development Book Cover
Learning Go Web Development
$ 23.99
$ 10.00
Go: Building Web Applications Book Cover
Go: Building Web Applications
$ 67.99
$ 10.00
Buy 2 for $20.00
Save $71.98
Add to Cart

Book Details

ISBN 139781785282317
Paperback136 pages

Book Description

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. It is a statically typed language with syntax loosely derived from that of C, adding garbage collection, type safety, some dynamic-typing capabilities, additional built-in types such as variable-length arrays and key-value maps, and a large standard library.

Learning Go Web Development is a start-to-finish walkthrough of the topics most critical to anyone building a new web application. Whether it’s keeping your application secure, connecting to your database, enabling token-based authentication, or utilizing logic-less templates, this book has you covered. You’ll begin by learning about routing requests and implementing SSL. Moving on, you’ll get to know about practices to keep users’ data safe. By the end of the book, you will be able to build robust, secure, and fully-featured applications for the web.

Table of Contents

Chapter 1: Introducing and Setting Up Go
Installing Go
Structuring a project
Importing packages
Introducing the net package
Hello, Web
Summary
Chapter 2: Serving and Routing
Serving files directly
Basic routing
Using more complex routing with Gorilla
Redirecting requests
Serving basic errors
Summary
Chapter 3: Connecting to Data
Connecting to a database
Using GUID for prettier URLs
Handling 404s
Summary
Chapter 4: Using Templates
Introducing templates, context, and visibility
HTML templates and text templates
Displaying variables and security
Using logic and control structures
Summary
Chapter 5: Frontend Integration with RESTful APIs
Setting up the basic API endpoint
RESTful architecture and best practices
Creating our first API endpoint
Implementing security
Creating data with POST
Modifying data with PUT
Summary
Chapter 6: Sessions and Cookies
Setting cookies
Capturing user information
Initiating a server-side session
Summary
Chapter 7: Microservices and Communication
Introducing the microservice approach
Pros and cons of utilizing microservices
Understanding the heart of microservices
Communicating between microservices
Putting a message on the wire
Reading from another service
Summary
Chapter 8: Logging and Testing
Introducing logging in Go
Logging to IO
Formatting your output
Using panics and fatal errors
Introducing testing in Go
Summary
Chapter 9: Security
HTTPS everywhere – implementing TLS
Preventing SQL injection
Protecting against XSS
Preventing cross-site request forgery (CSRF)
Securing cookies
Using the secure middleware
Summary
Chapter 10: Caching, Proxies and Improved Performance
Identifying bottlenecks
Implementing reverse proxies
Implementing caching strategies
Implementing HTTP/2
Summary

What You Will Learn

  • Create a listening web server
  • Route requests
  • Implement SSL/TLS
  • Use Go’s logic-less templates
  • Implement caching for maximum performance
  • Use sessions and cookies
  • Utilize security best practices to keep users and data safe
  • Connect to data sources
  • Create a RESTful API

Authors

Table of Contents

Chapter 1: Introducing and Setting Up Go
Installing Go
Structuring a project
Importing packages
Introducing the net package
Hello, Web
Summary
Chapter 2: Serving and Routing
Serving files directly
Basic routing
Using more complex routing with Gorilla
Redirecting requests
Serving basic errors
Summary
Chapter 3: Connecting to Data
Connecting to a database
Using GUID for prettier URLs
Handling 404s
Summary
Chapter 4: Using Templates
Introducing templates, context, and visibility
HTML templates and text templates
Displaying variables and security
Using logic and control structures
Summary
Chapter 5: Frontend Integration with RESTful APIs
Setting up the basic API endpoint
RESTful architecture and best practices
Creating our first API endpoint
Implementing security
Creating data with POST
Modifying data with PUT
Summary
Chapter 6: Sessions and Cookies
Setting cookies
Capturing user information
Initiating a server-side session
Summary
Chapter 7: Microservices and Communication
Introducing the microservice approach
Pros and cons of utilizing microservices
Understanding the heart of microservices
Communicating between microservices
Putting a message on the wire
Reading from another service
Summary
Chapter 8: Logging and Testing
Introducing logging in Go
Logging to IO
Formatting your output
Using panics and fatal errors
Introducing testing in Go
Summary
Chapter 9: Security
HTTPS everywhere – implementing TLS
Preventing SQL injection
Protecting against XSS
Preventing cross-site request forgery (CSRF)
Securing cookies
Using the secure middleware
Summary
Chapter 10: Caching, Proxies and Improved Performance
Identifying bottlenecks
Implementing reverse proxies
Implementing caching strategies
Implementing HTTP/2
Summary

Book Details

ISBN 139781785282317
Paperback136 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Go: Building Web Applications Book Cover
Go: Building Web Applications
$ 67.99
$ 10.00
Go: Design Patterns for Real-World Projects Book Cover
Go: Design Patterns for Real-World Projects
$ 71.99
$ 10.00
Building Microservices with Go Book Cover
Building Microservices with Go
$ 35.99
$ 10.00
Go Programming Blueprints - Second Edition Book Cover
Go Programming Blueprints - Second Edition
$ 39.99
$ 10.00
Go Design Patterns Book Cover
Go Design Patterns
$ 39.99
$ 10.00
Learning Functional Programming in Go Book Cover
Learning Functional Programming in Go
$ 35.99
$ 10.00