万本电子书0元读

万本电子书0元读

顶部广告

Learning Go Web Development电子书

售       价:¥

37人正在读 | 0人评论 9.8

作       者:Nathan Kozyra

出  版  社:Packt Publishing

出版时间:2016-04-01

字       数:47.3万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Build frontend-to-backend web applications using the best practices of a powerful, fast, and easy-to-deploy server language About This Book Build a fully-featured REST API to enable client-side single page apps Utilize TLS to build reliable and secure sites A quick guide that provides everything a developer needs to know to build end-to-end web applications in Go Who This Book Is For This book is intended for experienced programmers with minimal-to-moderate exposure to the Go language. If you have some fundamentals down, but are looking for more detail when it comes to using Go for the web, this is the book for you. 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 In Detail 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. Style and approach This concise book demonstrates by doing. You’ll build a component every step of the way and in the end, will have a blogging platform that can be used for personal experimentation and augmented to be used in production.
目录展开

Learning Go Web Development

Table of Contents

Learning Go Web Development

Credits

About the Author

About the Reviewer

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Introducing and Setting Up Go

Installing Go

Structuring a project

Code conventions

Importing packages

Handling private repositories

Dealing with versioning

Introducing the net package

Hello, Web

Summary

2. Serving and Routing

Serving files directly

Basic routing

Using more complex routing with Gorilla

Redirecting requests

Serving basic errors

Summary

3. Connecting to Data

Connecting to a database

Creating a MySQL database

Using GUID for prettier URLs

Handling 404s

Summary

4. Using Templates

Introducing templates, context, and visibility

HTML templates and text templates

Displaying variables and security

Using logic and control structures

Summary

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

6. Sessions and Cookies

Setting cookies

Capturing user information

Creating users

Enabling sessions

Letting users register

Letting users log in

Initiating a server-side session

Creating a store

Utilizing flash messages

Summary

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

8. Logging and Testing

Introducing logging in Go

Logging to IO

Multiple loggers

Formatting your output

Using panics and fatal errors

Introducing testing in Go

Summary

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

10. Caching, Proxies and Improved Performance

Identifying bottlenecks

Implementing reverse proxies

Implementing caching strategies

Using Least Recently Used

Caching by file

Caching in memory

Implementing HTTP/2

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部