error
基础构造
1 |
|
1 |
|
规范:errors.New("packageName: error info ")
errors.New()返回的是一个地址,因为如果直接返回结构体,如果两个error的内容相同,可能==会是ture
error
https://www.zengzx.xyz/2023/03/07/01.知识架构/01.Go/01.基础/07.error/
1 |
|
1 |
|
规范:errors.New("packageName: error info ")
errors.New()返回的是一个地址,因为如果直接返回结构体,如果两个error的内容相同,可能==会是ture