{"action":"created","issue":{"url":"https://api.github.com/repos/go-validator/validator/issues/30","labels_url":"https://api.github.com/repos/go-validator/validator/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/go-validator/validator/issues/30/comments","events_url":"https://api.github.com/repos/go-validator/validator/issues/30/events","html_url":"https://github.com/go-validator/validator/issues/30","id":68022440,"number":30,"title":"Update document examples","user":{"login":"felixcheruiyot","id":1054590,"avatar_url":"https://avatars.githubusercontent.com/u/1054590?v=3","gravatar_id":"","url":"https://api.github.com/users/felixcheruiyot","html_url":"https://github.com/felixcheruiyot","followers_url":"https://api.github.com/users/felixcheruiyot/followers","following_url":"https://api.github.com/users/felixcheruiyot/following{/other_user}","gists_url":"https://api.github.com/users/felixcheruiyot/gists{/gist_id}","starred_url":"https://api.github.com/users/felixcheruiyot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixcheruiyot/subscriptions","organizations_url":"https://api.github.com/users/felixcheruiyot/orgs","repos_url":"https://api.github.com/users/felixcheruiyot/repos","events_url":"https://api.github.com/users/felixcheruiyot/events{/privacy}","received_events_url":"https://api.github.com/users/felixcheruiyot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-13T06:54:34Z","updated_at":"2016-01-25T19:25:47Z","closed_at":"2016-01-25T19:25:47Z","body":"It took me time to figure out that this does not work:\r\n\r\n    if valid, err := validator.Validate(mystruct); !valid {\r\n\t\tfmt.Println(\"Error\")\r\n\t}\r\n\r\nI had to look at the code after 1 hour to realize it should be:\r\n\r\n    if err := validator.Validate(mystruct); err != nil {\r\n\t\tfmt.Println(\"Error...\")\r\n\t}"},"comment":{"url":"https://api.github.com/repos/go-validator/validator/issues/comments/174628875","html_url":"https://github.com/go-validator/validator/issues/30#issuecomment-174628875","issue_url":"https://api.github.com/repos/go-validator/validator/issues/30","id":174628875,"user":{"login":"fastest963","id":112555,"avatar_url":"https://avatars.githubusercontent.com/u/112555?v=3","gravatar_id":"","url":"https://api.github.com/users/fastest963","html_url":"https://github.com/fastest963","followers_url":"https://api.github.com/users/fastest963/followers","following_url":"https://api.github.com/users/fastest963/following{/other_user}","gists_url":"https://api.github.com/users/fastest963/gists{/gist_id}","starred_url":"https://api.github.com/users/fastest963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastest963/subscriptions","organizations_url":"https://api.github.com/users/fastest963/orgs","repos_url":"https://api.github.com/users/fastest963/repos","events_url":"https://api.github.com/users/fastest963/events{/privacy}","received_events_url":"https://api.github.com/users/fastest963/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T19:25:47Z","updated_at":"2016-01-25T19:25:47Z","body":"Fixed with #31 "}}