{"action":"created","issue":{"url":"https://api.github.com/repos/go-errors/errors/issues/3","labels_url":"https://api.github.com/repos/go-errors/errors/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/go-errors/errors/issues/3/comments","events_url":"https://api.github.com/repos/go-errors/errors/issues/3/events","html_url":"https://github.com/go-errors/errors/issues/3","id":105244725,"number":3,"title":"error is not nil when it should be","user":{"login":"adrienkohlbecker","id":70469,"avatar_url":"https://avatars.githubusercontent.com/u/70469?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienkohlbecker","html_url":"https://github.com/adrienkohlbecker","followers_url":"https://api.github.com/users/adrienkohlbecker/followers","following_url":"https://api.github.com/users/adrienkohlbecker/following{/other_user}","gists_url":"https://api.github.com/users/adrienkohlbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienkohlbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienkohlbecker/subscriptions","organizations_url":"https://api.github.com/users/adrienkohlbecker/orgs","repos_url":"https://api.github.com/users/adrienkohlbecker/repos","events_url":"https://api.github.com/users/adrienkohlbecker/events{/privacy}","received_events_url":"https://api.github.com/users/adrienkohlbecker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-07T16:36:03Z","updated_at":"2015-09-07T16:56:50Z","closed_at":null,"body":"Hello,\r\n\r\nI'm having a weird issue with the package. It may be my own inexperience with go though, but I thought I'd ask anyway.\r\nIf you run the following program, `myError not nil` gets printed. \r\nAny idea?\r\n\r\n```go\r\npackage main\r\n\r\nimport \"fmt\"\r\nimport \"github.com/go-errors/errors\"\r\n\r\nfunc goError() error {\r\n\treturn nil\r\n}\r\n\r\nfunc myError() *errors.Error {\r\n\treturn nil\r\n}\r\n\r\nfunc main() {\r\n\r\n\terr := goError()\r\n\tif err != nil {\r\n\t\tfmt.Println(\"goError not nil\")\r\n\t}\r\n\r\n\terr = myError()\r\n\tif err != nil {\r\n\t\tfmt.Println(\"myError not nil\")\r\n\t}\r\n\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/go-errors/errors/issues/comments/138340305","html_url":"https://github.com/go-errors/errors/issues/3#issuecomment-138340305","issue_url":"https://api.github.com/repos/go-errors/errors/issues/3","id":138340305,"user":{"login":"adrienkohlbecker","id":70469,"avatar_url":"https://avatars.githubusercontent.com/u/70469?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienkohlbecker","html_url":"https://github.com/adrienkohlbecker","followers_url":"https://api.github.com/users/adrienkohlbecker/followers","following_url":"https://api.github.com/users/adrienkohlbecker/following{/other_user}","gists_url":"https://api.github.com/users/adrienkohlbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienkohlbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienkohlbecker/subscriptions","organizations_url":"https://api.github.com/users/adrienkohlbecker/orgs","repos_url":"https://api.github.com/users/adrienkohlbecker/repos","events_url":"https://api.github.com/users/adrienkohlbecker/events{/privacy}","received_events_url":"https://api.github.com/users/adrienkohlbecker/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T16:56:50Z","updated_at":"2015-09-07T16:56:50Z","body":"I think this may be due to https://news.ycombinator.com/item?id=5196241\r\nTo be able to use the package that way, `*errors.Error` should be an interface. I'm going to do a PR"}}