command
Version:
v0.0.0-...-8ba6176
Opens a new window with list of versions in this module.
Published: Jun 22, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
geekbang-go-week2
介绍
Go 进阶训练营-week2
软件架构
Go 进阶训练营 第二周作业
我们在数据库操作的时候,比如 dao 层中当遇到一个 sql.ErrNoRows 的时候,是否应该 Wrap 这个 error,抛给上层。为什么,应该怎么做请写出代码?
答
通过wrap 包装额外的信息,往上层抛错误,由上层来决定如何处理错误
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
module
|
|
|
|
Click to show internal directories.
Click to hide internal directories.