{"action":"created","issue":{"url":"https://api.github.com/repos/smartystreets/assertions/issues/20","repository_url":"https://api.github.com/repos/smartystreets/assertions","labels_url":"https://api.github.com/repos/smartystreets/assertions/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/smartystreets/assertions/issues/20/comments","events_url":"https://api.github.com/repos/smartystreets/assertions/issues/20/events","html_url":"https://github.com/smartystreets/assertions/issues/20","id":243436191,"number":20,"title":"ShouldEqual could be made to work with structs that define an equality method (like time.Time)","user":{"login":"mdwhatcott","id":202910,"avatar_url":"https://avatars1.githubusercontent.com/u/202910?v=4","gravatar_id":"","url":"https://api.github.com/users/mdwhatcott","html_url":"https://github.com/mdwhatcott","followers_url":"https://api.github.com/users/mdwhatcott/followers","following_url":"https://api.github.com/users/mdwhatcott/following{/other_user}","gists_url":"https://api.github.com/users/mdwhatcott/gists{/gist_id}","starred_url":"https://api.github.com/users/mdwhatcott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdwhatcott/subscriptions","organizations_url":"https://api.github.com/users/mdwhatcott/orgs","repos_url":"https://api.github.com/users/mdwhatcott/repos","events_url":"https://api.github.com/users/mdwhatcott/events{/privacy}","received_events_url":"https://api.github.com/users/mdwhatcott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-17T15:34:38Z","updated_at":"2017-07-17T17:04:08Z","closed_at":null,"body":"Thought: What if `ShouldEqual` (and `ShouldNotEqual`) worked on struct types that implemented an equality method for their own type:\r\n\r\n`func (a <struct>) Equal(b <struct>) bool`\r\n\r\nThe `time.Time` struct has:\r\n\r\n`func (t Time) Equal(u Time) bool`\r\n\r\nIs this pattern common enough that it would be helpful and/or obvious?"},"comment":{"url":"https://api.github.com/repos/smartystreets/assertions/issues/comments/315816282","html_url":"https://github.com/smartystreets/assertions/issues/20#issuecomment-315816282","issue_url":"https://api.github.com/repos/smartystreets/assertions/issues/20","id":315816282,"user":{"login":"rana","id":12687553,"avatar_url":"https://avatars0.githubusercontent.com/u/12687553?v=4","gravatar_id":"","url":"https://api.github.com/users/rana","html_url":"https://github.com/rana","followers_url":"https://api.github.com/users/rana/followers","following_url":"https://api.github.com/users/rana/following{/other_user}","gists_url":"https://api.github.com/users/rana/gists{/gist_id}","starred_url":"https://api.github.com/users/rana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rana/subscriptions","organizations_url":"https://api.github.com/users/rana/orgs","repos_url":"https://api.github.com/users/rana/repos","events_url":"https://api.github.com/users/rana/events{/privacy}","received_events_url":"https://api.github.com/users/rana/received_events","type":"User","site_admin":false},"created_at":"2017-07-17T17:04:08Z","updated_at":"2017-07-17T17:04:08Z","body":"I get \"Equal\" immediately. \"Resemble\" implies kind of equal? Perhaps in some circumstances? I'm sure i could look up the docs, but for something as basic as time.Time I just wrote my own assertion to make sure time is really equal.  "}}
{"actor":{"display_login":"rana"}}