08 2021 档案

windows下 charles 手机app抓包
摘要:windows下抓包 下载地址https://www.charlesproxy.com/latest-release/download.do 打开charles proxy -> proxy setting Port改为 8888 (这个随意 自己要记住 端口号做好高于或等于8888) 随便下载一个 阅读全文

posted @ 2021-08-26 15:24 ExplorerMan 阅读(309) 评论(0) 推荐(0)

Go语言参数校验(go-playground / validator)——基本使用
摘要:Go语言没有像Java一样的注解快速进行参数的校验,但可以通过struct tag(结构体标签)进行序列化。常用的如: type User struct { ID string `json:"id"` Name string `json:"name"` Age string `json:"age"` 阅读全文

posted @ 2021-08-18 16:11 ExplorerMan 阅读(1418) 评论(0) 推荐(1)

自定义json unmarshaler返回空字段
摘要:我已经实现了一个自定义JSON解组器,但由于某种原因它不会返回正确的值 - 所有字段都会返回零。自定义json unmarshaler返回空字段 例如: type test struct { t string } func New(data string) (*test, error) { retu 阅读全文

posted @ 2021-08-17 11:24 ExplorerMan 阅读(252) 评论(0) 推荐(0)

导航