hertz
hertz copied to clipboard
Go HTTP framework with high-performance and strong-extensibility for building micro-services.
#### What type of PR is this? feat #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...
#### 在golang的1.16版本增加了embed的标签,方便我们将静态资源文件打包为二进制文件。 ``` package main import ( _ "embed" "fmt" ) //go:embed index.html var index string func main() { fmt.Printf("测试文件内容: %s\n", index) } ``` 例如 ``` //go:embed static/imgs static/imgs下面所有的文件 //go:embed...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd...
#### What type of PR is this? #### Check the PR title. - [ ] This PR title match the format: \(optional scope): \ - [ ] The description of...
#### What type of PR is this? feat #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...
#### What type of PR is this? feat #### Check the PR title. - [ ] This PR title match the format: \(optional scope): \ - [ ] The description...
**Describe the bug** I'm using Hertz with the standard transport like this: - https://github.com/EinStack/glide/blob/develop/pkg/api/http/config.go#L43-L69 On [shutdown](https://github.com/EinStack/glide/blob/develop/pkg/api/http/server.go#L51-L62) though, Hertz constantly returns me this error: ``` 2024-02-11T12:41:25.093+0200 ERROR HERTZ: Error=accept tcp 127.0.0.1:9099:...
**Describe the Question** how to use vd in hz |如何使用校验相关参数在hz命令行中 **Reproducible Code** vd 相关文档过于简单了,我尝试了很多次,才成功生成想要的代码 另外vd 相关限制也很痛苦,比如 ` string password = 2 [(api.go_tag)='json:"password,required"',(api.vd)="len($)>=8 && len($)
#### What type of PR is this? feat #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...
#### What type of PR is this? refactor #### Check the PR title. - [x] This PR title match the format: \(optional scope): \ - [x] The description of this...