Echo Quick Start Guide
J. Ben Huson更新时间:2021-06-25 21:39:53
最新章节:Leave a review - let other readers know what you think封面
版权信息
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
更新时间:2021-06-25 21:39:53