-
# 为接口做参数校验 | Go 语言编程之旅
2.5 为接口做参数校验 接下来我们将正式进行编码,在进行对应的业务模块开发时,第一步要考虑到的问题的就是如何进行入参校验,我们需要将整个项目,甚至整个团队的组件给定下来,形成一个通用规范,在今天本章节将核心介绍这一块,并完成标签模块的接口的入参校验。
2.5.1 validator 介绍 在本项目中我们将使用开源项目
[https://golan…
-
在 Web 应用中,有一块内容非常重要,却很容易被我们忽略:**参数验证**,忘了之后常常会给我们造成大量的处理错误问题,甚至直接造成应用崩溃。之前我在 [你的团队需要更好的 API 文档流程][blog_85] 提到过,[Joi][joi] 的验证非常好用,可以帮助我们验证客户端用户的上传数据以及返回数据,而在 Golang 中,我们该如何做呢?
### 如果需要我们自己验…
-
* Currently we can only call `QueryWhoIsByAlias` when an account is authenticated
* We need to be able to call this method before authenticating
* This is important for speedway login with alias (we n…
-
hexya server -o
Config File "hexya" Not Found in "[/etc/hexya /home/gleke/.hexya /home/gleke/hexya]"
the configuration file needs to be created by yourself?
gleke updated
3 months ago
-
- With issues:
- Use the search tool before opening a new issue.
- Please provide source code and commit sha if you found a bug.
- Review existing issues and provide feedback or react to them…
-
I've tried on two machines and one proxmox container, but have not been able to install the rmfakecloud server yet.
Git clone:
```
(base) root@server:/root# cd /src/
(base) root@server:/src# git…
-
# 进行链路追踪 | Go 语言编程之旅
2.10 进行链路追踪 付费知识,请右拐《Go 语言编程之旅》纸质书,传送门: 出版社的官方旗舰店 。
[https://golang2.eddycjy.com/posts/ch2/10-tracing/](https://golang2.eddycjy.com/posts/ch2/10-tracing/)
-
### Please make sure of the following things
- [X] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。
- [X] I'm sure there are no duplicate issues or discussions.…
-
This happens when I try to create a new object through speedway server.
To reproduce:
1. create a schema that has at least 1 field of type Integer
2. try to create an object from that schema
Error…
-
### Description
I use span.RecordError(err error, options ...EventOption) record my application exceptions in Jaeger exportor, but jaeger UI and elasticsearch not exist my exceptions. I grabbed the…