{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/828","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/828/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/828/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/828/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-go/pull/828","id":281774493,"number":828,"title":"Datastore omitempty tag for GeoPoint and time.Time","user":{"login":"ivantrips","id":11987596,"avatar_url":"https://avatars3.githubusercontent.com/u/11987596?v=4","gravatar_id":"","url":"https://api.github.com/users/ivantrips","html_url":"https://github.com/ivantrips","followers_url":"https://api.github.com/users/ivantrips/followers","following_url":"https://api.github.com/users/ivantrips/following{/other_user}","gists_url":"https://api.github.com/users/ivantrips/gists{/gist_id}","starred_url":"https://api.github.com/users/ivantrips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivantrips/subscriptions","organizations_url":"https://api.github.com/users/ivantrips/orgs","repos_url":"https://api.github.com/users/ivantrips/repos","events_url":"https://api.github.com/users/ivantrips/events{/privacy}","received_events_url":"https://api.github.com/users/ivantrips/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-13T14:46:23Z","updated_at":"2017-12-13T16:40:28Z","closed_at":"2017-12-13T15:29:43Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/pulls/828","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-go/pull/828","diff_url":"https://github.com/GoogleCloudPlatform/google-cloud-go/pull/828.diff","patch_url":"https://github.com/GoogleCloudPlatform/google-cloud-go/pull/828.patch"},"body":"When a entity is saving to datastore and you use `omitempty` tag in `GeoPoint` and `time.Time` it will write a default value, but it is not the intender behaviour so with the extra cases in the switch we make sure `omitempty` works in the intended way"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/comments/351448095","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-go/pull/828#issuecomment-351448095","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/828","id":351448095,"user":{"login":"jba","id":18483045,"avatar_url":"https://avatars1.githubusercontent.com/u/18483045?v=4","gravatar_id":"","url":"https://api.github.com/users/jba","html_url":"https://github.com/jba","followers_url":"https://api.github.com/users/jba/followers","following_url":"https://api.github.com/users/jba/following{/other_user}","gists_url":"https://api.github.com/users/jba/gists{/gist_id}","starred_url":"https://api.github.com/users/jba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jba/subscriptions","organizations_url":"https://api.github.com/users/jba/orgs","repos_url":"https://api.github.com/users/jba/repos","events_url":"https://api.github.com/users/jba/events{/privacy}","received_events_url":"https://api.github.com/users/jba/received_events","type":"User","site_admin":false},"created_at":"2017-12-13T16:40:28Z","updated_at":"2017-12-13T16:40:28Z","author_association":"MEMBER","body":"The doc says \"The empty values are false, 0, any nil interface value, and any array, slice, map, or string of length zero. Struct field values will never be empty. \"\r\n\r\n@zombiezen Do you think it's reasonable to extend that to zero `time.Time` and `GeoPoint`? "}}
{"actor":{"display_login":"jba"}}