Learning Go Web Development
by Nathan Kozyra
B01891X7SI
Print Length 页数: 136 pages
Publisher finelybook 出版社: Packt Publishing (27 April 2016)
Language 语言: English
ISBN-10: 178528231X
ISBN-13: 9781785282317
Key Features
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
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.
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
About the Author
Nathan Kozyra is a seasoned web developer,with nearly two decades of professional software development experience. Since Go’s initial release,he has been drawn to the language for its power,elegance,and usability.
He has a strong interest in web development,music production,and machine learning. He is married and has a two-year-old son.
Contents
Introducing and Setting Up Go
Serving and Routing
Connecting to Data
Using Templates
Frontend Integration with RESTful APIs
Sessions and Cookies
Microservices and Communication
Logging and Testing
Security
Caching,Proxies,and Improved Performance
主要特征
构建一个功能齐全的REST API来启用客户端单页面应用程序
利用TLS构建可靠和安全的站点
一个快速指南,提供开发人员在Go中构建端到端Web应用程序需要了解的一切
图书说明
Go是一种开源编程语言,可以轻松构建简单,可靠和高效的软件。它是一种静态类型的语言,其语法松散地来源于C,添加垃圾收集,类型安全,一些动态打字功能,附加的内置类型,如可变长度数组和键值映射,以及大型标准库。
学习Go Web Development是对任何构建新的Web应用程序的任何人最关键的主题的一个始于终点的演练。无论是保持应用程序安全,连接到数据库,启用基于令牌的身份验证,还是使用无逻辑模板,本书已经涵盖了。您将首先了解路由请求和实施SSL。继续,您将了解如何保持用户数据安全的做法。在本书的最后,您将能够为网络构建强大,安全,功能齐全的应用程序。
你会学到什么
创建一个监听的Web服务器
路由请求
实施SSL / TLS
使用Go的无逻辑模板
实施缓存以获得最佳性能
使用会话和Cookie
利用安全最佳做法来保护用户和数据的安全
连接到数据源
创建一个RESTful API
关于作者
Nathan Kozyra是一名经验丰富的网络开发人员,拥有近二十年的专业软件开发经验。自从Go的初始版本以来,他被强加于语言的优势和可用性。
他对网络开发,音乐制作和机器学习非常有兴趣。他已经结婚了,有一个两岁的儿子。
目录
介绍和设置Go
服务和路由
连接数据
使用模板
前端与RESTful API集成
会话和饼干
微服务与沟通
测井和测试
安全
缓存,代理和改进的性能