{"action":"created","issue":{"url":"https://api.github.com/repos/gokits/gotools/issues/1","repository_url":"https://api.github.com/repos/gokits/gotools","labels_url":"https://api.github.com/repos/gokits/gotools/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gokits/gotools/issues/1/comments","events_url":"https://api.github.com/repos/gokits/gotools/issues/1/events","html_url":"https://github.com/gokits/gotools/issues/1","id":259721034,"number":1,"title":"failed when..","user":{"login":"StaticTemp","id":19523774,"avatar_url":"https://avatars1.githubusercontent.com/u/19523774?v=4","gravatar_id":"","url":"https://api.github.com/users/StaticTemp","html_url":"https://github.com/StaticTemp","followers_url":"https://api.github.com/users/StaticTemp/followers","following_url":"https://api.github.com/users/StaticTemp/following{/other_user}","gists_url":"https://api.github.com/users/StaticTemp/gists{/gist_id}","starred_url":"https://api.github.com/users/StaticTemp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StaticTemp/subscriptions","organizations_url":"https://api.github.com/users/StaticTemp/orgs","repos_url":"https://api.github.com/users/StaticTemp/repos","events_url":"https://api.github.com/users/StaticTemp/events{/privacy}","received_events_url":"https://api.github.com/users/StaticTemp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-22T07:00:39Z","updated_at":"2017-09-22T07:13:44Z","closed_at":null,"author_association":"NONE","body":"type XX struct {\r\n\ta int\r\n\tb []int\r\n}\r\n\r\nfunc TestCopyNoPtr2(t *testing.T) {\r\n\r\n\tvar src XX\r\n\tsrc.a = 1\r\n\tsrc.b = []int{1,2}\r\n\r\n\tvar dst XX\r\n\tStructCopy(&dst, &src)\r\n\tif dst.a != 1 {\r\n\t\tt.Error(\"field B failed\")\r\n\t}\r\n\tif dst.b[1] != 2 {\r\n\t\tt.Error(\"field C failed\")\r\n\t}\r\n\r\n\tfmt.Println(\"dst:\", dst)\r\n}\r\n\r\n=>dst.a = 0, dst.b=[]\r\n\r\nI test your test sample and it success.  But why using my sample?\r\n\r\n\r\nI known.    a. b in struct must be bigger."},"comment":{"url":"https://api.github.com/repos/gokits/gotools/issues/comments/331369681","html_url":"https://github.com/gokits/gotools/issues/1#issuecomment-331369681","issue_url":"https://api.github.com/repos/gokits/gotools/issues/1","id":331369681,"user":{"login":"YueHonghui","id":5221912,"avatar_url":"https://avatars2.githubusercontent.com/u/5221912?v=4","gravatar_id":"","url":"https://api.github.com/users/YueHonghui","html_url":"https://github.com/YueHonghui","followers_url":"https://api.github.com/users/YueHonghui/followers","following_url":"https://api.github.com/users/YueHonghui/following{/other_user}","gists_url":"https://api.github.com/users/YueHonghui/gists{/gist_id}","starred_url":"https://api.github.com/users/YueHonghui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YueHonghui/subscriptions","organizations_url":"https://api.github.com/users/YueHonghui/orgs","repos_url":"https://api.github.com/users/YueHonghui/repos","events_url":"https://api.github.com/users/YueHonghui/events{/privacy}","received_events_url":"https://api.github.com/users/YueHonghui/received_events","type":"User","site_admin":false},"created_at":"2017-09-22T07:13:44Z","updated_at":"2017-09-22T07:13:44Z","author_association":"COLLABORATOR","body":"Thank you for reporting issue. I will confirm and inspect this. By the way, which go version and build flags do you use?"}}
{"actor":{"display_login":"YueHonghui"}}