{"action":"created","issue":{"url":"https://api.github.com/repos/eoscanada/eos-go/issues/100","repository_url":"https://api.github.com/repos/eoscanada/eos-go","labels_url":"https://api.github.com/repos/eoscanada/eos-go/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/eoscanada/eos-go/issues/100/comments","events_url":"https://api.github.com/repos/eoscanada/eos-go/issues/100/events","html_url":"https://github.com/eoscanada/eos-go/issues/100","id":392035307,"node_id":"MDU6SXNzdWUzOTIwMzUzMDc=","number":100,"title":"How can i get Action Data?","user":{"login":"jackami","id":5304811,"node_id":"MDQ6VXNlcjUzMDQ4MTE=","avatar_url":"https://avatars2.githubusercontent.com/u/5304811?v=4","gravatar_id":"","url":"https://api.github.com/users/jackami","html_url":"https://github.com/jackami","followers_url":"https://api.github.com/users/jackami/followers","following_url":"https://api.github.com/users/jackami/following{/other_user}","gists_url":"https://api.github.com/users/jackami/gists{/gist_id}","starred_url":"https://api.github.com/users/jackami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackami/subscriptions","organizations_url":"https://api.github.com/users/jackami/orgs","repos_url":"https://api.github.com/users/jackami/repos","events_url":"https://api.github.com/users/jackami/events{/privacy}","received_events_url":"https://api.github.com/users/jackami/received_events","type":"User","site_admin":false},"labels":[{"id":1166815407,"node_id":"MDU6TGFiZWwxMTY2ODE1NDA3","url":"https://api.github.com/repos/eoscanada/eos-go/labels/answered","name":"answered","color":"b4def7","default":false},{"id":824434734,"node_id":"MDU6TGFiZWw4MjQ0MzQ3MzQ=","url":"https://api.github.com/repos/eoscanada/eos-go/labels/question","name":"question","color":"d876e3","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-18T07:54:10Z","updated_at":"2018-12-20T03:02:35Z","closed_at":"2018-12-20T03:02:35Z","author_association":"NONE","body":"```  \r\n        blk, err := api.GetBlockByNum(31820971)\r\n\tif err != nil {\r\n\r\n\t} else {\r\n\t\tfor _, trx := range blk.Transactions {\r\n\t\t\tif trx.Transaction.Packed != nil {\r\n\t\t\t\tt, err := trx.Transaction.Packed.Unpack()\r\n\t\t\t\tif err != nil {\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor _, a := range t.Actions {\r\n\t\t\t\t\t\tfmt.Println(a.Account, a.Name, a.ActionData.HexData)\r\n\r\n\t\t\t\t\t\tfmt.Println(a.ActionData.Data)\r\n\r\n\t\t\t\t\t\ttransfer, ok := a.ActionData.Data.(*Transfer)\r\n\t\t\t\t\t\tif !ok {\r\n\t\t\t\t\t\t\tfmt.Println(\"expecting transaction transfer data\")\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tfmt.Println(transfer)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//fmt.Println(trx.Transaction.Packed.PackedContextFreeData.String())\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n```\r\n\r\nI tried to get the Data field by parsing HexData, but I can't find a good way to get the data."},"comment":{"url":"https://api.github.com/repos/eoscanada/eos-go/issues/comments/448841907","html_url":"https://github.com/eoscanada/eos-go/issues/100#issuecomment-448841907","issue_url":"https://api.github.com/repos/eoscanada/eos-go/issues/100","id":448841907,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODg0MTkwNw==","user":{"login":"jackami","id":5304811,"node_id":"MDQ6VXNlcjUzMDQ4MTE=","avatar_url":"https://avatars2.githubusercontent.com/u/5304811?v=4","gravatar_id":"","url":"https://api.github.com/users/jackami","html_url":"https://github.com/jackami","followers_url":"https://api.github.com/users/jackami/followers","following_url":"https://api.github.com/users/jackami/following{/other_user}","gists_url":"https://api.github.com/users/jackami/gists{/gist_id}","starred_url":"https://api.github.com/users/jackami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackami/subscriptions","organizations_url":"https://api.github.com/users/jackami/orgs","repos_url":"https://api.github.com/users/jackami/repos","events_url":"https://api.github.com/users/jackami/events{/privacy}","received_events_url":"https://api.github.com/users/jackami/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T03:02:35Z","updated_at":"2018-12-20T03:02:35Z","author_association":"NONE","body":"Thank you very much for your answer. I tested it and the Data field can be parsed. ^_^"}}
{"actor":{"display_login":"jackami"}}