摘要: github: https://github.com/go-resty/resty go-resty 特性# go-resty 有很多特性: 发起 GET, POST, PUT, DELETE, HEAD, PATCH, OPTIONS, etc. 请求 简单的链式书写 自动解析 JSON 和 XM 阅读全文
posted @ 2023-06-15 19:20 X-Wolf 阅读(875) 评论(0) 推荐(0) 编辑
摘要: errors包常用方法 func Unwrap(err error) error // 获得err包含下一层错误 func Is(err, target error) bool // 判断err是否包含target func As(err error, target interface{}) boo 阅读全文
posted @ 2023-06-15 19:12 X-Wolf 阅读(234) 评论(0) 推荐(0) 编辑