{"action":"created","comment":{"url":"https://api.github.com/repos/attic-labs/noms/pulls/comments/76876199","id":76876199,"diff_hunk":"@@ -191,18 +191,18 @@ func CamelCaseFieldName(input string) string {\n \n \tstrippedField := escapeField(input, encode)\n \tsplitField := strings.Fields(strippedField)\n-\toutput := \"\"\n+\n+\tif len(splitField) == 0 {","path":"go/types/struct.go","position":null,"original_position":6,"commit_id":"e9cff7aa5d0be23b87b9e187468e092b49b24560","original_commit_id":"e9cff7aa5d0be23b87b9e187468e092b49b24560","user":{"login":"aboodman","id":80388,"avatar_url":"https://avatars.githubusercontent.com/u/80388?v=3","gravatar_id":"","url":"https://api.github.com/users/aboodman","html_url":"https://github.com/aboodman","followers_url":"https://api.github.com/users/aboodman/followers","following_url":"https://api.github.com/users/aboodman/following{/other_user}","gists_url":"https://api.github.com/users/aboodman/gists{/gist_id}","starred_url":"https://api.github.com/users/aboodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboodman/subscriptions","organizations_url":"https://api.github.com/users/aboodman/orgs","repos_url":"https://api.github.com/users/aboodman/repos","events_url":"https://api.github.com/users/aboodman/events{/privacy}","received_events_url":"https://api.github.com/users/aboodman/received_events","type":"User","site_admin":false},"body":"good catch. i would not have guessed Fields could return empty slice.","created_at":"2016-08-30T20:49:49Z","updated_at":"2016-08-30T20:49:49Z","html_url":"https://github.com/attic-labs/noms/pull/2441#discussion_r76876199","pull_request_url":"https://api.github.com/repos/attic-labs/noms/pulls/2441","_links":{"self":{"href":"https://api.github.com/repos/attic-labs/noms/pulls/comments/76876199"},"html":{"href":"https://github.com/attic-labs/noms/pull/2441#discussion_r76876199"},"pull_request":{"href":"https://api.github.com/repos/attic-labs/noms/pulls/2441"}}},"pull_request":{"url":"https://api.github.com/repos/attic-labs/noms/pulls/2441","id":82805344,"html_url":"https://github.com/attic-labs/noms/pull/2441","diff_url":"https://github.com/attic-labs/noms/pull/2441.diff","patch_url":"https://github.com/attic-labs/noms/pull/2441.patch","issue_url":"https://api.github.com/repos/attic-labs/noms/issues/2441","number":2441,"state":"open","locked":false,"title":"Add special encoding to csv imported struct fields","user":{"login":"zcstarr","id":173187,"avatar_url":"https://avatars.githubusercontent.com/u/173187?v=3","gravatar_id":"","url":"https://api.github.com/users/zcstarr","html_url":"https://github.com/zcstarr","followers_url":"https://api.github.com/users/zcstarr/followers","following_url":"https://api.github.com/users/zcstarr/following{/other_user}","gists_url":"https://api.github.com/users/zcstarr/gists{/gist_id}","starred_url":"https://api.github.com/users/zcstarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcstarr/subscriptions","organizations_url":"https://api.github.com/users/zcstarr/orgs","repos_url":"https://api.github.com/users/zcstarr/repos","events_url":"https://api.github.com/users/zcstarr/events{/privacy}","received_events_url":"https://api.github.com/users/zcstarr/received_events","type":"User","site_admin":false},"body":"…n logic, and changes csv importing to strip csv name fields of invalid struct characters and changes spaces in field names to camel case. i.e. camel case is translated to camelCase.\r\n\r\nAdditional comments and conversation here. I was struggling to undo my fat finger rebase orz.\r\nhttps://github.com/attic-labs/noms/pull/2437","created_at":"2016-08-25T22:37:14Z","updated_at":"2016-08-30T20:49:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"846719ec753274d8dd65fc5614197e241782fb3d","assignee":{"login":"aboodman","id":80388,"avatar_url":"https://avatars.githubusercontent.com/u/80388?v=3","gravatar_id":"","url":"https://api.github.com/users/aboodman","html_url":"https://github.com/aboodman","followers_url":"https://api.github.com/users/aboodman/followers","following_url":"https://api.github.com/users/aboodman/following{/other_user}","gists_url":"https://api.github.com/users/aboodman/gists{/gist_id}","starred_url":"https://api.github.com/users/aboodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboodman/subscriptions","organizations_url":"https://api.github.com/users/aboodman/orgs","repos_url":"https://api.github.com/users/aboodman/repos","events_url":"https://api.github.com/users/aboodman/events{/privacy}","received_events_url":"https://api.github.com/users/aboodman/received_events","type":"User","site_admin":false},"assignees":[{"login":"aboodman","id":80388,"avatar_url":"https://avatars.githubusercontent.com/u/80388?v=3","gravatar_id":"","url":"https://api.github.com/users/aboodman","html_url":"https://github.com/aboodman","followers_url":"https://api.github.com/users/aboodman/followers","following_url":"https://api.github.com/users/aboodman/following{/other_user}","gists_url":"https://api.github.com/users/aboodman/gists{/gist_id}","starred_url":"https://api.github.com/users/aboodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboodman/subscriptions","organizations_url":"https://api.github.com/users/aboodman/orgs","repos_url":"https://api.github.com/users/aboodman/repos","events_url":"https://api.github.com/users/aboodman/events{/privacy}","received_events_url":"https://api.github.com/users/aboodman/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/attic-labs/noms/pulls/2441/commits","review_comments_url":"https://api.github.com/repos/attic-labs/noms/pulls/2441/comments","review_comment_url":"https://api.github.com/repos/attic-labs/noms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/attic-labs/noms/issues/2441/comments","statuses_url":"https://api.github.com/repos/attic-labs/noms/statuses/e9cff7aa5d0be23b87b9e187468e092b49b24560","head":{"label":"zcstarr:q_encoding","ref":"q_encoding","sha":"e9cff7aa5d0be23b87b9e187468e092b49b24560","user":{"login":"zcstarr","id":173187,"avatar_url":"https://avatars.githubusercontent.com/u/173187?v=3","gravatar_id":"","url":"https://api.github.com/users/zcstarr","html_url":"https://github.com/zcstarr","followers_url":"https://api.github.com/users/zcstarr/followers","following_url":"https://api.github.com/users/zcstarr/following{/other_user}","gists_url":"https://api.github.com/users/zcstarr/gists{/gist_id}","starred_url":"https://api.github.com/users/zcstarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcstarr/subscriptions","organizations_url":"https://api.github.com/users/zcstarr/orgs","repos_url":"https://api.github.com/users/zcstarr/repos","events_url":"https://api.github.com/users/zcstarr/events{/privacy}","received_events_url":"https://api.github.com/users/zcstarr/received_events","type":"User","site_admin":false},"repo":{"id":66400933,"name":"noms","full_name":"zcstarr/noms","owner":{"login":"zcstarr","id":173187,"avatar_url":"https://avatars.githubusercontent.com/u/173187?v=3","gravatar_id":"","url":"https://api.github.com/users/zcstarr","html_url":"https://github.com/zcstarr","followers_url":"https://api.github.com/users/zcstarr/followers","following_url":"https://api.github.com/users/zcstarr/following{/other_user}","gists_url":"https://api.github.com/users/zcstarr/gists{/gist_id}","starred_url":"https://api.github.com/users/zcstarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcstarr/subscriptions","organizations_url":"https://api.github.com/users/zcstarr/orgs","repos_url":"https://api.github.com/users/zcstarr/repos","events_url":"https://api.github.com/users/zcstarr/events{/privacy}","received_events_url":"https://api.github.com/users/zcstarr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zcstarr/noms","description":"The versioned, forkable, syncable database","fork":true,"url":"https://api.github.com/repos/zcstarr/noms","forks_url":"https://api.github.com/repos/zcstarr/noms/forks","keys_url":"https://api.github.com/repos/zcstarr/noms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zcstarr/noms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zcstarr/noms/teams","hooks_url":"https://api.github.com/repos/zcstarr/noms/hooks","issue_events_url":"https://api.github.com/repos/zcstarr/noms/issues/events{/number}","events_url":"https://api.github.com/repos/zcstarr/noms/events","assignees_url":"https://api.github.com/repos/zcstarr/noms/assignees{/user}","branches_url":"https://api.github.com/repos/zcstarr/noms/branches{/branch}","tags_url":"https://api.github.com/repos/zcstarr/noms/tags","blobs_url":"https://api.github.com/repos/zcstarr/noms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zcstarr/noms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zcstarr/noms/git/refs{/sha}","trees_url":"https://api.github.com/repos/zcstarr/noms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zcstarr/noms/statuses/{sha}","languages_url":"https://api.github.com/repos/zcstarr/noms/languages","stargazers_url":"https://api.github.com/repos/zcstarr/noms/stargazers","contributors_url":"https://api.github.com/repos/zcstarr/noms/contributors","subscribers_url":"https://api.github.com/repos/zcstarr/noms/subscribers","subscription_url":"https://api.github.com/repos/zcstarr/noms/subscription","commits_url":"https://api.github.com/repos/zcstarr/noms/commits{/sha}","git_commits_url":"https://api.github.com/repos/zcstarr/noms/git/commits{/sha}","comments_url":"https://api.github.com/repos/zcstarr/noms/comments{/number}","issue_comment_url":"https://api.github.com/repos/zcstarr/noms/issues/comments{/number}","contents_url":"https://api.github.com/repos/zcstarr/noms/contents/{+path}","compare_url":"https://api.github.com/repos/zcstarr/noms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zcstarr/noms/merges","archive_url":"https://api.github.com/repos/zcstarr/noms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zcstarr/noms/downloads","issues_url":"https://api.github.com/repos/zcstarr/noms/issues{/number}","pulls_url":"https://api.github.com/repos/zcstarr/noms/pulls{/number}","milestones_url":"https://api.github.com/repos/zcstarr/noms/milestones{/number}","notifications_url":"https://api.github.com/repos/zcstarr/noms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zcstarr/noms/labels{/name}","releases_url":"https://api.github.com/repos/zcstarr/noms/releases{/id}","deployments_url":"https://api.github.com/repos/zcstarr/noms/deployments","created_at":"2016-08-23T20:30:08Z","updated_at":"2016-08-23T20:30:10Z","pushed_at":"2016-08-30T20:48:24Z","git_url":"git://github.com/zcstarr/noms.git","ssh_url":"git@github.com:zcstarr/noms.git","clone_url":"https://github.com/zcstarr/noms.git","svn_url":"https://github.com/zcstarr/noms","homepage":"","size":25462,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"attic-labs:master","ref":"master","sha":"8912489fa88c05861af2c24850fdfcd95957b1d8","user":{"login":"attic-labs","id":12534679,"avatar_url":"https://avatars.githubusercontent.com/u/12534679?v=3","gravatar_id":"","url":"https://api.github.com/users/attic-labs","html_url":"https://github.com/attic-labs","followers_url":"https://api.github.com/users/attic-labs/followers","following_url":"https://api.github.com/users/attic-labs/following{/other_user}","gists_url":"https://api.github.com/users/attic-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/attic-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attic-labs/subscriptions","organizations_url":"https://api.github.com/users/attic-labs/orgs","repos_url":"https://api.github.com/users/attic-labs/repos","events_url":"https://api.github.com/users/attic-labs/events{/privacy}","received_events_url":"https://api.github.com/users/attic-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":36778364,"name":"noms","full_name":"attic-labs/noms","owner":{"login":"attic-labs","id":12534679,"avatar_url":"https://avatars.githubusercontent.com/u/12534679?v=3","gravatar_id":"","url":"https://api.github.com/users/attic-labs","html_url":"https://github.com/attic-labs","followers_url":"https://api.github.com/users/attic-labs/followers","following_url":"https://api.github.com/users/attic-labs/following{/other_user}","gists_url":"https://api.github.com/users/attic-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/attic-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attic-labs/subscriptions","organizations_url":"https://api.github.com/users/attic-labs/orgs","repos_url":"https://api.github.com/users/attic-labs/repos","events_url":"https://api.github.com/users/attic-labs/events{/privacy}","received_events_url":"https://api.github.com/users/attic-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/attic-labs/noms","description":"The versioned, forkable, syncable database","fork":false,"url":"https://api.github.com/repos/attic-labs/noms","forks_url":"https://api.github.com/repos/attic-labs/noms/forks","keys_url":"https://api.github.com/repos/attic-labs/noms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/attic-labs/noms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/attic-labs/noms/teams","hooks_url":"https://api.github.com/repos/attic-labs/noms/hooks","issue_events_url":"https://api.github.com/repos/attic-labs/noms/issues/events{/number}","events_url":"https://api.github.com/repos/attic-labs/noms/events","assignees_url":"https://api.github.com/repos/attic-labs/noms/assignees{/user}","branches_url":"https://api.github.com/repos/attic-labs/noms/branches{/branch}","tags_url":"https://api.github.com/repos/attic-labs/noms/tags","blobs_url":"https://api.github.com/repos/attic-labs/noms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/attic-labs/noms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/attic-labs/noms/git/refs{/sha}","trees_url":"https://api.github.com/repos/attic-labs/noms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/attic-labs/noms/statuses/{sha}","languages_url":"https://api.github.com/repos/attic-labs/noms/languages","stargazers_url":"https://api.github.com/repos/attic-labs/noms/stargazers","contributors_url":"https://api.github.com/repos/attic-labs/noms/contributors","subscribers_url":"https://api.github.com/repos/attic-labs/noms/subscribers","subscription_url":"https://api.github.com/repos/attic-labs/noms/subscription","commits_url":"https://api.github.com/repos/attic-labs/noms/commits{/sha}","git_commits_url":"https://api.github.com/repos/attic-labs/noms/git/commits{/sha}","comments_url":"https://api.github.com/repos/attic-labs/noms/comments{/number}","issue_comment_url":"https://api.github.com/repos/attic-labs/noms/issues/comments{/number}","contents_url":"https://api.github.com/repos/attic-labs/noms/contents/{+path}","compare_url":"https://api.github.com/repos/attic-labs/noms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/attic-labs/noms/merges","archive_url":"https://api.github.com/repos/attic-labs/noms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/attic-labs/noms/downloads","issues_url":"https://api.github.com/repos/attic-labs/noms/issues{/number}","pulls_url":"https://api.github.com/repos/attic-labs/noms/pulls{/number}","milestones_url":"https://api.github.com/repos/attic-labs/noms/milestones{/number}","notifications_url":"https://api.github.com/repos/attic-labs/noms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/attic-labs/noms/labels{/name}","releases_url":"https://api.github.com/repos/attic-labs/noms/releases{/id}","deployments_url":"https://api.github.com/repos/attic-labs/noms/deployments","created_at":"2015-06-03T03:44:49Z","updated_at":"2016-08-30T16:25:37Z","pushed_at":"2016-08-30T20:48:51Z","git_url":"git://github.com/attic-labs/noms.git","ssh_url":"git@github.com:attic-labs/noms.git","clone_url":"https://github.com/attic-labs/noms.git","svn_url":"https://github.com/attic-labs/noms","homepage":"","size":28888,"stargazers_count":4161,"watchers_count":4161,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":104,"mirror_url":null,"open_issues_count":209,"forks":104,"open_issues":209,"watchers":4161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/attic-labs/noms/pulls/2441"},"html":{"href":"https://github.com/attic-labs/noms/pull/2441"},"issue":{"href":"https://api.github.com/repos/attic-labs/noms/issues/2441"},"comments":{"href":"https://api.github.com/repos/attic-labs/noms/issues/2441/comments"},"review_comments":{"href":"https://api.github.com/repos/attic-labs/noms/pulls/2441/comments"},"review_comment":{"href":"https://api.github.com/repos/attic-labs/noms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/attic-labs/noms/pulls/2441/commits"},"statuses":{"href":"https://api.github.com/repos/attic-labs/noms/statuses/e9cff7aa5d0be23b87b9e187468e092b49b24560"}}}}
{"actor":{"display_login":"aboodman"}}