{"action":"created","issue":{"url":"https://api.github.com/repos/onsi/gomega/issues/284","repository_url":"https://api.github.com/repos/onsi/gomega","labels_url":"https://api.github.com/repos/onsi/gomega/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/onsi/gomega/issues/284/comments","events_url":"https://api.github.com/repos/onsi/gomega/issues/284/events","html_url":"https://github.com/onsi/gomega/issues/284","id":326704247,"number":284,"title":"Matching structs based on fields in struct","user":{"login":"haichuanyu","id":8040718,"avatar_url":"https://avatars0.githubusercontent.com/u/8040718?v=4","gravatar_id":"","url":"https://api.github.com/users/haichuanyu","html_url":"https://github.com/haichuanyu","followers_url":"https://api.github.com/users/haichuanyu/followers","following_url":"https://api.github.com/users/haichuanyu/following{/other_user}","gists_url":"https://api.github.com/users/haichuanyu/gists{/gist_id}","starred_url":"https://api.github.com/users/haichuanyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haichuanyu/subscriptions","organizations_url":"https://api.github.com/users/haichuanyu/orgs","repos_url":"https://api.github.com/users/haichuanyu/repos","events_url":"https://api.github.com/users/haichuanyu/events{/privacy}","received_events_url":"https://api.github.com/users/haichuanyu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-26T02:54:21Z","updated_at":"2018-05-29T19:52:32Z","closed_at":null,"author_association":"NONE","body":"Similar to func HaveKeyWithValue, but applicable to any user defined struct.\r\n\r\n//HaveFieldWithValue succeeds if actual is a struct with the passed in field and value.\r\n//HaveFieldWithValue fails if struct is nil, does not contain field, or if value in field is not equal or nil.\r\n//    Expect(mystruct{\"Foo\": \"Bar\", \"BazFoo\": \"Duck\"}).Should(HaveFieldWithValue(\"Foo\", \"Bar\"))\r\n//    Expect(mystruct{\"Foo\": \"Bar\", \"BazFoo\": \"Duck\"}).Should(HaveFieldWithValue(MatchRegexp(`.+Foo$`), \"Bar\"))\r\nfunc HaveFieldWithValue(key interface{}, value interface{}) types.GomegaMatcher {\r\n...\r\n}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/onsi/gomega/issues/comments/392920936","html_url":"https://github.com/onsi/gomega/issues/284#issuecomment-392920936","issue_url":"https://api.github.com/repos/onsi/gomega/issues/284","id":392920936,"user":{"login":"williammartin","id":1611510,"avatar_url":"https://avatars3.githubusercontent.com/u/1611510?v=4","gravatar_id":"","url":"https://api.github.com/users/williammartin","html_url":"https://github.com/williammartin","followers_url":"https://api.github.com/users/williammartin/followers","following_url":"https://api.github.com/users/williammartin/following{/other_user}","gists_url":"https://api.github.com/users/williammartin/gists{/gist_id}","starred_url":"https://api.github.com/users/williammartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williammartin/subscriptions","organizations_url":"https://api.github.com/users/williammartin/orgs","repos_url":"https://api.github.com/users/williammartin/repos","events_url":"https://api.github.com/users/williammartin/events{/privacy}","received_events_url":"https://api.github.com/users/williammartin/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T19:52:32Z","updated_at":"2018-05-29T19:52:32Z","author_association":"COLLABORATOR","body":"I'm just having a think about whether you can nest a `gstruct` matcher"}}
{"actor":{"display_login":"williammartin"}}