售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Copyright and Credits
Echo Quick Start Guide
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewers
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
Code in Action
Conventions used
Get in touch
Reviews
Understanding HTTP, Go, and Echo
Technical requirements
HTTP basics
HTTP request
HTTP response
Go HTTP handlers
Go HTTP web server
Reasons for a framework
Setting up the environment
Setting up Echo
Summary
Developing Echo Projects
Technical requirements
Setting up a project in echo and organizing code
Implementing a project
Dependency management
Routing and handlers
Routing
Handlers
Middleware
Custom middleware
Rendering
Summary
Exploring Routing Capabilities
Technical requirements
Basic handler routing
Adding routes
How Echo routing works
Group routing
Router implementation considerations
In action
Summary
Implementing Middleware
Technical requirements
Basics of middleware processing
Middleware chaining
Creating custom middleware
In action
Summary
Utilizing the Request Context and Data Bindings
Technical requirements
Maintaining context
Globally requesting context mapping
The new handler function type
Hiding context within a request
Post Go 1.7
Echo context
Request binding
Response rendering
echo.Response
Summary
Performing Logging and Error Handling
Technical requirements
Logging
Echo's Logger interface
Log levels
Logger middleware
Error handling
Handling application panics
Summary
Testing Applications
Technical requirements
Types of testing
Unit testing
Benchmark testing
Behavior testing
Integration testing
Security testing
Unit testing middleware and handler code
Benchmark testing web applications
External behavior and integration testing
Summary
Providing Templates and Static Content
Technical requirements
Serving static files
Template basics
Templates within Echo
Calling Echo from templates
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜