{"action":"opened","issue":{"url":"https://api.github.com/repos/matthewmueller/postgres/issues/1","repository_url":"https://api.github.com/repos/matthewmueller/postgres","labels_url":"https://api.github.com/repos/matthewmueller/postgres/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/matthewmueller/postgres/issues/1/comments","events_url":"https://api.github.com/repos/matthewmueller/postgres/issues/1/events","html_url":"https://github.com/matthewmueller/postgres/issues/1","id":200785097,"number":1,"title":"Marshal interface{} automatically","user":{"login":"matthewmueller","id":170299,"avatar_url":"https://avatars.githubusercontent.com/u/170299?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewmueller","html_url":"https://github.com/matthewmueller","followers_url":"https://api.github.com/users/matthewmueller/followers","following_url":"https://api.github.com/users/matthewmueller/following{/other_user}","gists_url":"https://api.github.com/users/matthewmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewmueller/subscriptions","organizations_url":"https://api.github.com/users/matthewmueller/orgs","repos_url":"https://api.github.com/users/matthewmueller/repos","events_url":"https://api.github.com/users/matthewmueller/events{/privacy}","received_events_url":"https://api.github.com/users/matthewmueller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-14T06:26:34Z","updated_at":"2017-01-14T06:26:34Z","closed_at":null,"body":"Right now there needs to be:\r\n\r\n```go\r\nmeta, err := json.Marshal(t.Meta)\r\nif err != nil {\r\n\treturn &t, err\r\n}\r\nrow := db.One(`\r\n\tinsert into \"1\".tasks (\"key\", rate, timezone, meta)\r\n\tvalues (:key, :rate, :timezone, :meta)\r\n\ton conflict (\"key\", \"user\") do update set\r\n\t\trate = :rate,\r\n\t\ttimezone = :timezone,\r\n\t\tmeta = :meta\r\n\treturning id\r\n`, map[string]interface{}{\r\n\t\"key\":      t.Key,\r\n\t\"rate\":     t.Rate,\r\n\t\"timezone\": t.Timezone,\r\n\t\"meta\":     meta,\r\n})\r\n```"}}
{"actor":{"display_login":"matthewmueller"}}