{"action":"created","issue":{"url":"https://api.github.com/repos/matzryo/mynotes/issues/13","repository_url":"https://api.github.com/repos/matzryo/mynotes","labels_url":"https://api.github.com/repos/matzryo/mynotes/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/matzryo/mynotes/issues/13/comments","events_url":"https://api.github.com/repos/matzryo/mynotes/issues/13/events","html_url":"https://github.com/matzryo/mynotes/issues/13","id":361768865,"node_id":"MDU6SXNzdWUzNjE3Njg4NjU=","number":13,"title":"Goメモ","user":{"login":"matzryo","id":18694721,"node_id":"MDQ6VXNlcjE4Njk0NzIx","avatar_url":"https://avatars1.githubusercontent.com/u/18694721?v=4","gravatar_id":"","url":"https://api.github.com/users/matzryo","html_url":"https://github.com/matzryo","followers_url":"https://api.github.com/users/matzryo/followers","following_url":"https://api.github.com/users/matzryo/following{/other_user}","gists_url":"https://api.github.com/users/matzryo/gists{/gist_id}","starred_url":"https://api.github.com/users/matzryo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matzryo/subscriptions","organizations_url":"https://api.github.com/users/matzryo/orgs","repos_url":"https://api.github.com/users/matzryo/repos","events_url":"https://api.github.com/users/matzryo/events{/privacy}","received_events_url":"https://api.github.com/users/matzryo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2018-09-19T14:11:48Z","updated_at":"2018-09-27T07:18:54Z","closed_at":null,"author_association":"OWNER","body":""},"comment":{"url":"https://api.github.com/repos/matzryo/mynotes/issues/comments/424984902","html_url":"https://github.com/matzryo/mynotes/issues/13#issuecomment-424984902","issue_url":"https://api.github.com/repos/matzryo/mynotes/issues/13","id":424984902,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDk4NDkwMg==","user":{"login":"matzryo","id":18694721,"node_id":"MDQ6VXNlcjE4Njk0NzIx","avatar_url":"https://avatars1.githubusercontent.com/u/18694721?v=4","gravatar_id":"","url":"https://api.github.com/users/matzryo","html_url":"https://github.com/matzryo","followers_url":"https://api.github.com/users/matzryo/followers","following_url":"https://api.github.com/users/matzryo/following{/other_user}","gists_url":"https://api.github.com/users/matzryo/gists{/gist_id}","starred_url":"https://api.github.com/users/matzryo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matzryo/subscriptions","organizations_url":"https://api.github.com/users/matzryo/orgs","repos_url":"https://api.github.com/users/matzryo/repos","events_url":"https://api.github.com/users/matzryo/events{/privacy}","received_events_url":"https://api.github.com/users/matzryo/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T07:18:54Z","updated_at":"2018-09-27T07:18:54Z","author_association":"OWNER","body":"\r\npic.Showには関数を渡すのか\r\n\r\nhttps://github.com/golang/tour/blob/d642b9371986f5bb2152547a0d525a57f634c3ef/pic/pic.go#L15-L33\r\n\r\n```go\r\nfunc Show(f func(int, int) [][]uint8) {\r\n\tconst (\r\n\t\tdx = 256\r\n\t\tdy = 256\r\n\t)\r\n\tdata := f(dx, dy)\r\n\tm := image.NewNRGBA(image.Rect(0, 0, dx, dy))\r\n\tfor y := 0; y < dy; y++ {\r\n\t\tfor x := 0; x < dx; x++ {\r\n\t\t\tv := data[y][x]\r\n\t\t\ti := y*m.Stride + x*4\r\n\t\t\tm.Pix[i] = v\r\n\t\t\tm.Pix[i+1] = v\r\n\t\t\tm.Pix[i+2] = 255\r\n\t\t\tm.Pix[i+3] = 255\r\n\t\t}\r\n\t}\r\n\tShowImage(m)\r\n}\r\n```"}}
{"actor":{"display_login":"matzryo"}}