Rinat

Results 20 comments of Rinat

да это важно, добавьте для других

Could you be so kind to send snippet of your code or example?

you should use `/web` url everywhere. ``` router.Use(static.Serve("/web/css", static.LocalFile("./html/assets/css", true))) router.Use(static.Serve("/web/js", static.LocalFile("./html/assets/js", true))) router.Use(static.Serve("/web/images", static.LocalFile("./html/assets/img", true))) router.Use(static.Serve("/web/pdf", static.LocalFile("./html/assets/pdf", true))) ```

in order to set env variable in windows you have to use `set`: ``` set GIN_MODE="release" ``` https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/set_1

according to code https://github.com/gin-gonic/gin/blob/2ae61570499d8bb5eb05e46d22a3754cf2635e63/mode.go#L57-L78 it is pretty straightforward. Do you have full context of your code ? before `gin.SetMode(gin.ReleaseMode)`

```go func midldleware1(c *gin.Context) { //blalba } func midldleware2(c *gin.Context) { //blalba } func Parrallel() gin.HandlerFunc { return func(c *gin.Context) { // you have to use sync.WaitGroup before go midldleware1(c)...

most likely your code is not working. there is no **Response** struct

according to docs/Readme you have to use c.Param ```go func OK(c *gin.Context) { message := "" //msg := []string{} //data := interface{} // or msg := c.Param("msg") data := c.Param("data")...

Looks like it is somehow connected to issue #622 https://github.com/gin-gonic/gin/issues/662 BindJSON returns "EOF"

looks like it is a kind of typo in README. obviously binding.Form doesn't have BindBody method and it doesn't implement BindingBody interface. ```go c.ShouldBindBodyWith(&objA, binding.Form) ```