{"action":"created","issue":{"url":"https://api.github.com/repos/bluesuncorp/validator/issues/134","labels_url":"https://api.github.com/repos/bluesuncorp/validator/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/bluesuncorp/validator/issues/134/comments","events_url":"https://api.github.com/repos/bluesuncorp/validator/issues/134/events","html_url":"https://github.com/bluesuncorp/validator/issues/134","id":98201886,"number":134,"title":"validate.Struct() always return error","user":{"login":"alioygur","id":628322,"avatar_url":"https://avatars.githubusercontent.com/u/628322?v=3","gravatar_id":"","url":"https://api.github.com/users/alioygur","html_url":"https://github.com/alioygur","followers_url":"https://api.github.com/users/alioygur/followers","following_url":"https://api.github.com/users/alioygur/following{/other_user}","gists_url":"https://api.github.com/users/alioygur/gists{/gist_id}","starred_url":"https://api.github.com/users/alioygur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alioygur/subscriptions","organizations_url":"https://api.github.com/users/alioygur/orgs","repos_url":"https://api.github.com/users/alioygur/repos","events_url":"https://api.github.com/users/alioygur/events{/privacy}","received_events_url":"https://api.github.com/users/alioygur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bluesuncorp/validator/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"joeybloggs","id":8068371,"avatar_url":"https://avatars.githubusercontent.com/u/8068371?v=3","gravatar_id":"","url":"https://api.github.com/users/joeybloggs","html_url":"https://github.com/joeybloggs","followers_url":"https://api.github.com/users/joeybloggs/followers","following_url":"https://api.github.com/users/joeybloggs/following{/other_user}","gists_url":"https://api.github.com/users/joeybloggs/gists{/gist_id}","starred_url":"https://api.github.com/users/joeybloggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeybloggs/subscriptions","organizations_url":"https://api.github.com/users/joeybloggs/orgs","repos_url":"https://api.github.com/users/joeybloggs/repos","events_url":"https://api.github.com/users/joeybloggs/events{/privacy}","received_events_url":"https://api.github.com/users/joeybloggs/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-07-30T15:50:04Z","updated_at":"2015-07-30T21:06:51Z","closed_at":null,"body":"hi, i am new in golang, maybe that problem about me. \r\n\r\n\r\nwhen i use validator.Struct() in a function that return named error, the err var always not nil\r\n\r\n```\r\nfunc ValidateStruct(v interface{}) (err error) {\r\n\terr = validate.Struct(v)\r\n\treturn\r\n}\r\n```\r\n\r\nbut when i use it like this, it works\r\n\r\n```\r\nfunc ValidateStruct(v interface{}) (err error) {\r\n\terrs := validate.Struct(v)\r\n\tif errs != nil {\r\n\t\terr = errs\r\n\t\treturn\r\n\t}\r\n\treturn nil\r\n}\r\n```\r\n\r\nso what the problem ?"},"comment":{"url":"https://api.github.com/repos/bluesuncorp/validator/issues/comments/126487904","html_url":"https://github.com/bluesuncorp/validator/issues/134#issuecomment-126487904","issue_url":"https://api.github.com/repos/bluesuncorp/validator/issues/134","id":126487904,"user":{"login":"joeybloggs","id":8068371,"avatar_url":"https://avatars.githubusercontent.com/u/8068371?v=3","gravatar_id":"","url":"https://api.github.com/users/joeybloggs","html_url":"https://github.com/joeybloggs","followers_url":"https://api.github.com/users/joeybloggs/followers","following_url":"https://api.github.com/users/joeybloggs/following{/other_user}","gists_url":"https://api.github.com/users/joeybloggs/gists{/gist_id}","starred_url":"https://api.github.com/users/joeybloggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeybloggs/subscriptions","organizations_url":"https://api.github.com/users/joeybloggs/orgs","repos_url":"https://api.github.com/users/joeybloggs/repos","events_url":"https://api.github.com/users/joeybloggs/events{/privacy}","received_events_url":"https://api.github.com/users/joeybloggs/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T21:06:51Z","updated_at":"2015-07-30T21:06:51Z","body":"I will take a look at this asap, probably a little later tonight and get back to you."}}