narrow-gate

Results 3 issues of narrow-gate

1. I use gin-contrib/cors pkg to handle cross-origin requests 2. I used ReverseProxy to proxy downstream services in the project. The CORS response headers from the downstream service are duplicated...

* 自定义的CustomValidator 覆盖了 ValidateStruct 方法 且当 Kind==Struct 时进行验证, * 我应该如何验证切片类型和指针类型, 为什么这么设计?

**生成器生成代码. 在查询返回的时候 调用了生成了 convertXXX() 方法 ** ``` 阅读源代码发现使用copier.Copy() 作数据复制, 但是存在手动转换ID主键的情况, uint64 -> string 我发现copier.CopyWithOption() 提供option 选项 可以定义转换器能否使用转为器完成 ``` ``` `ToString = copier.TypeConverter{ SrcType: uint64(0), DstType: "", Fn: func(from interface{}) (interface{},...