These are chat archives for gin-gonic/gin

25th
May 2015
Pavel Pavlenko
@pavlik
May 25 2015 06:13
Can you explain how to handle errors when I bind some fields in struct to form & set binding:"required"?
Pavel Pavlenko
@pavlik
May 25 2015 06:46
In console i see this error, but how & where handle it in the code
Error #01: Required Title
Meta: Operation aborted
Pavel Pavlenko
@pavlik
May 25 2015 07:01
after updating to last version of gin:
Error #01: Struct:Post
Field validation for "Title" failed on the "required" tag
Field validation for "Body" failed on the "required" tag
Pavel Pavlenko
@pavlik
May 25 2015 11:54
Where i can see source code of webapplication using gin?
Manu MA
@manucorporat
May 25 2015 13:36

@pavlik
err := Bind(var)

or using a middleware and reading c.Errors

Pavel Pavlenko
@pavlik
May 25 2015 13:47
ok! And what about good example of big app using Gin? Do you know someone?