{"action":"created","comment":{"url":"https://api.github.com/repos/golangit/gobyexample-it/pulls/comments/59989337","id":59989337,"diff_hunk":"@@ -1,43 +1,45 @@\n-// Sometimes we'll want to sort a collection by something\n-// other than its natural order. For example, suppose we\n-// wanted to sort strings by their length instead of\n-// alphabetically. Here's an example of custom sorts\n-// in Go.\n+// Talvolta è necessario ordinare una collezione seguendo\n+// un ordinamento che è differente dal suo ordinamento\n+// naturale. Ad esempio, supponiamo di dover ordinare\n+// un insieme di stringhe in base alla loro lunghezza\n+// (invece che in ordine alfabetico). Ecco un esempio di\n+// ordinamento personalizzato in Go.\n \n package main\n \n import \"sort\"\n import \"fmt\"\n \n-// In order to sort by a custom function in Go, we need a\n-// corresponding type. Here we've created a `ByLength`\n-// type that is just an alias for the builtin `[]string`\n-// type.\n+// Al fine di poter ordinare tramite una funzione personalizzata\n+// in Go, abbiamo bisogno di un tipo corrispondete. Abbiamo","path":"examples/sorting-by-functions/sorting-by-functions.go","position":23,"original_position":23,"commit_id":"e855b00f0fd9e39221f2fac779427f22f5d849ba","original_commit_id":"e855b00f0fd9e39221f2fac779427f22f5d849ba","user":{"login":"thehowl","id":4681308,"avatar_url":"https://avatars.githubusercontent.com/u/4681308?v=3","gravatar_id":"","url":"https://api.github.com/users/thehowl","html_url":"https://github.com/thehowl","followers_url":"https://api.github.com/users/thehowl/followers","following_url":"https://api.github.com/users/thehowl/following{/other_user}","gists_url":"https://api.github.com/users/thehowl/gists{/gist_id}","starred_url":"https://api.github.com/users/thehowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehowl/subscriptions","organizations_url":"https://api.github.com/users/thehowl/orgs","repos_url":"https://api.github.com/users/thehowl/repos","events_url":"https://api.github.com/users/thehowl/events{/privacy}","received_events_url":"https://api.github.com/users/thehowl/received_events","type":"User","site_admin":false},"body":"*corrispondente","created_at":"2016-04-17T18:01:33Z","updated_at":"2016-04-17T18:01:33Z","html_url":"https://github.com/golangit/gobyexample-it/pull/28#discussion_r59989337","pull_request_url":"https://api.github.com/repos/golangit/gobyexample-it/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/golangit/gobyexample-it/pulls/comments/59989337"},"html":{"href":"https://github.com/golangit/gobyexample-it/pull/28#discussion_r59989337"},"pull_request":{"href":"https://api.github.com/repos/golangit/gobyexample-it/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/golangit/gobyexample-it/pulls/28","id":59306073,"html_url":"https://github.com/golangit/gobyexample-it/pull/28","diff_url":"https://github.com/golangit/gobyexample-it/pull/28.diff","patch_url":"https://github.com/golangit/gobyexample-it/pull/28.patch","issue_url":"https://api.github.com/repos/golangit/gobyexample-it/issues/28","number":28,"state":"open","locked":false,"title":"example: localization for example 40: sorting-by-functions","user":{"login":"cortinico","id":3001957,"avatar_url":"https://avatars.githubusercontent.com/u/3001957?v=3","gravatar_id":"","url":"https://api.github.com/users/cortinico","html_url":"https://github.com/cortinico","followers_url":"https://api.github.com/users/cortinico/followers","following_url":"https://api.github.com/users/cortinico/following{/other_user}","gists_url":"https://api.github.com/users/cortinico/gists{/gist_id}","starred_url":"https://api.github.com/users/cortinico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cortinico/subscriptions","organizations_url":"https://api.github.com/users/cortinico/orgs","repos_url":"https://api.github.com/users/cortinico/repos","events_url":"https://api.github.com/users/cortinico/events{/privacy}","received_events_url":"https://api.github.com/users/cortinico/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-14T21:10:57Z","updated_at":"2016-04-17T18:01:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2abbe81ed1249ed9c8a748bb221b926787c97799","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/golangit/gobyexample-it/pulls/28/commits","review_comments_url":"https://api.github.com/repos/golangit/gobyexample-it/pulls/28/comments","review_comment_url":"https://api.github.com/repos/golangit/gobyexample-it/pulls/comments{/number}","comments_url":"https://api.github.com/repos/golangit/gobyexample-it/issues/28/comments","statuses_url":"https://api.github.com/repos/golangit/gobyexample-it/statuses/e855b00f0fd9e39221f2fac779427f22f5d849ba","head":{"label":"golangit:40-sorting-by-functions","ref":"40-sorting-by-functions","sha":"e855b00f0fd9e39221f2fac779427f22f5d849ba","user":{"login":"golangit","id":6575988,"avatar_url":"https://avatars.githubusercontent.com/u/6575988?v=3","gravatar_id":"","url":"https://api.github.com/users/golangit","html_url":"https://github.com/golangit","followers_url":"https://api.github.com/users/golangit/followers","following_url":"https://api.github.com/users/golangit/following{/other_user}","gists_url":"https://api.github.com/users/golangit/gists{/gist_id}","starred_url":"https://api.github.com/users/golangit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golangit/subscriptions","organizations_url":"https://api.github.com/users/golangit/orgs","repos_url":"https://api.github.com/users/golangit/repos","events_url":"https://api.github.com/users/golangit/events{/privacy}","received_events_url":"https://api.github.com/users/golangit/received_events","type":"Organization","site_admin":false},"repo":{"id":48048250,"name":"gobyexample-it","full_name":"golangit/gobyexample-it","owner":{"login":"golangit","id":6575988,"avatar_url":"https://avatars.githubusercontent.com/u/6575988?v=3","gravatar_id":"","url":"https://api.github.com/users/golangit","html_url":"https://github.com/golangit","followers_url":"https://api.github.com/users/golangit/followers","following_url":"https://api.github.com/users/golangit/following{/other_user}","gists_url":"https://api.github.com/users/golangit/gists{/gist_id}","starred_url":"https://api.github.com/users/golangit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golangit/subscriptions","organizations_url":"https://api.github.com/users/golangit/orgs","repos_url":"https://api.github.com/users/golangit/repos","events_url":"https://api.github.com/users/golangit/events{/privacy}","received_events_url":"https://api.github.com/users/golangit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/golangit/gobyexample-it","description":"Go by Example","fork":true,"url":"https://api.github.com/repos/golangit/gobyexample-it","forks_url":"https://api.github.com/repos/golangit/gobyexample-it/forks","keys_url":"https://api.github.com/repos/golangit/gobyexample-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/golangit/gobyexample-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/golangit/gobyexample-it/teams","hooks_url":"https://api.github.com/repos/golangit/gobyexample-it/hooks","issue_events_url":"https://api.github.com/repos/golangit/gobyexample-it/issues/events{/number}","events_url":"https://api.github.com/repos/golangit/gobyexample-it/events","assignees_url":"https://api.github.com/repos/golangit/gobyexample-it/assignees{/user}","branches_url":"https://api.github.com/repos/golangit/gobyexample-it/branches{/branch}","tags_url":"https://api.github.com/repos/golangit/gobyexample-it/tags","blobs_url":"https://api.github.com/repos/golangit/gobyexample-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/golangit/gobyexample-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/golangit/gobyexample-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/golangit/gobyexample-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/golangit/gobyexample-it/statuses/{sha}","languages_url":"https://api.github.com/repos/golangit/gobyexample-it/languages","stargazers_url":"https://api.github.com/repos/golangit/gobyexample-it/stargazers","contributors_url":"https://api.github.com/repos/golangit/gobyexample-it/contributors","subscribers_url":"https://api.github.com/repos/golangit/gobyexample-it/subscribers","subscription_url":"https://api.github.com/repos/golangit/gobyexample-it/subscription","commits_url":"https://api.github.com/repos/golangit/gobyexample-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/golangit/gobyexample-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/golangit/gobyexample-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/golangit/gobyexample-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/golangit/gobyexample-it/contents/{+path}","compare_url":"https://api.github.com/repos/golangit/gobyexample-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/golangit/gobyexample-it/merges","archive_url":"https://api.github.com/repos/golangit/gobyexample-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/golangit/gobyexample-it/downloads","issues_url":"https://api.github.com/repos/golangit/gobyexample-it/issues{/number}","pulls_url":"https://api.github.com/repos/golangit/gobyexample-it/pulls{/number}","milestones_url":"https://api.github.com/repos/golangit/gobyexample-it/milestones{/number}","notifications_url":"https://api.github.com/repos/golangit/gobyexample-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/golangit/gobyexample-it/labels{/name}","releases_url":"https://api.github.com/repos/golangit/gobyexample-it/releases{/id}","deployments_url":"https://api.github.com/repos/golangit/gobyexample-it/deployments","created_at":"2015-12-15T14:34:21Z","updated_at":"2016-04-12T15:19:12Z","pushed_at":"2016-04-17T17:59:00Z","git_url":"git://github.com/golangit/gobyexample-it.git","ssh_url":"git@github.com:golangit/gobyexample-it.git","clone_url":"https://github.com/golangit/gobyexample-it.git","svn_url":"https://github.com/golangit/gobyexample-it","homepage":"https://gobyexample.com","size":4438,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":24,"forks":0,"open_issues":24,"watchers":2,"default_branch":"master"}},"base":{"label":"golangit:master","ref":"master","sha":"bd178860d7d0877ab4651e9657da34306ff8ffb3","user":{"login":"golangit","id":6575988,"avatar_url":"https://avatars.githubusercontent.com/u/6575988?v=3","gravatar_id":"","url":"https://api.github.com/users/golangit","html_url":"https://github.com/golangit","followers_url":"https://api.github.com/users/golangit/followers","following_url":"https://api.github.com/users/golangit/following{/other_user}","gists_url":"https://api.github.com/users/golangit/gists{/gist_id}","starred_url":"https://api.github.com/users/golangit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golangit/subscriptions","organizations_url":"https://api.github.com/users/golangit/orgs","repos_url":"https://api.github.com/users/golangit/repos","events_url":"https://api.github.com/users/golangit/events{/privacy}","received_events_url":"https://api.github.com/users/golangit/received_events","type":"Organization","site_admin":false},"repo":{"id":48048250,"name":"gobyexample-it","full_name":"golangit/gobyexample-it","owner":{"login":"golangit","id":6575988,"avatar_url":"https://avatars.githubusercontent.com/u/6575988?v=3","gravatar_id":"","url":"https://api.github.com/users/golangit","html_url":"https://github.com/golangit","followers_url":"https://api.github.com/users/golangit/followers","following_url":"https://api.github.com/users/golangit/following{/other_user}","gists_url":"https://api.github.com/users/golangit/gists{/gist_id}","starred_url":"https://api.github.com/users/golangit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golangit/subscriptions","organizations_url":"https://api.github.com/users/golangit/orgs","repos_url":"https://api.github.com/users/golangit/repos","events_url":"https://api.github.com/users/golangit/events{/privacy}","received_events_url":"https://api.github.com/users/golangit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/golangit/gobyexample-it","description":"Go by Example","fork":true,"url":"https://api.github.com/repos/golangit/gobyexample-it","forks_url":"https://api.github.com/repos/golangit/gobyexample-it/forks","keys_url":"https://api.github.com/repos/golangit/gobyexample-it/keys{/key_id}","collaborators_url":"https://api.github.com/repos/golangit/gobyexample-it/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/golangit/gobyexample-it/teams","hooks_url":"https://api.github.com/repos/golangit/gobyexample-it/hooks","issue_events_url":"https://api.github.com/repos/golangit/gobyexample-it/issues/events{/number}","events_url":"https://api.github.com/repos/golangit/gobyexample-it/events","assignees_url":"https://api.github.com/repos/golangit/gobyexample-it/assignees{/user}","branches_url":"https://api.github.com/repos/golangit/gobyexample-it/branches{/branch}","tags_url":"https://api.github.com/repos/golangit/gobyexample-it/tags","blobs_url":"https://api.github.com/repos/golangit/gobyexample-it/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/golangit/gobyexample-it/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/golangit/gobyexample-it/git/refs{/sha}","trees_url":"https://api.github.com/repos/golangit/gobyexample-it/git/trees{/sha}","statuses_url":"https://api.github.com/repos/golangit/gobyexample-it/statuses/{sha}","languages_url":"https://api.github.com/repos/golangit/gobyexample-it/languages","stargazers_url":"https://api.github.com/repos/golangit/gobyexample-it/stargazers","contributors_url":"https://api.github.com/repos/golangit/gobyexample-it/contributors","subscribers_url":"https://api.github.com/repos/golangit/gobyexample-it/subscribers","subscription_url":"https://api.github.com/repos/golangit/gobyexample-it/subscription","commits_url":"https://api.github.com/repos/golangit/gobyexample-it/commits{/sha}","git_commits_url":"https://api.github.com/repos/golangit/gobyexample-it/git/commits{/sha}","comments_url":"https://api.github.com/repos/golangit/gobyexample-it/comments{/number}","issue_comment_url":"https://api.github.com/repos/golangit/gobyexample-it/issues/comments{/number}","contents_url":"https://api.github.com/repos/golangit/gobyexample-it/contents/{+path}","compare_url":"https://api.github.com/repos/golangit/gobyexample-it/compare/{base}...{head}","merges_url":"https://api.github.com/repos/golangit/gobyexample-it/merges","archive_url":"https://api.github.com/repos/golangit/gobyexample-it/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/golangit/gobyexample-it/downloads","issues_url":"https://api.github.com/repos/golangit/gobyexample-it/issues{/number}","pulls_url":"https://api.github.com/repos/golangit/gobyexample-it/pulls{/number}","milestones_url":"https://api.github.com/repos/golangit/gobyexample-it/milestones{/number}","notifications_url":"https://api.github.com/repos/golangit/gobyexample-it/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/golangit/gobyexample-it/labels{/name}","releases_url":"https://api.github.com/repos/golangit/gobyexample-it/releases{/id}","deployments_url":"https://api.github.com/repos/golangit/gobyexample-it/deployments","created_at":"2015-12-15T14:34:21Z","updated_at":"2016-04-12T15:19:12Z","pushed_at":"2016-04-17T17:59:00Z","git_url":"git://github.com/golangit/gobyexample-it.git","ssh_url":"git@github.com:golangit/gobyexample-it.git","clone_url":"https://github.com/golangit/gobyexample-it.git","svn_url":"https://github.com/golangit/gobyexample-it","homepage":"https://gobyexample.com","size":4438,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":24,"forks":0,"open_issues":24,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/golangit/gobyexample-it/pulls/28"},"html":{"href":"https://github.com/golangit/gobyexample-it/pull/28"},"issue":{"href":"https://api.github.com/repos/golangit/gobyexample-it/issues/28"},"comments":{"href":"https://api.github.com/repos/golangit/gobyexample-it/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/golangit/gobyexample-it/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/golangit/gobyexample-it/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/golangit/gobyexample-it/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/golangit/gobyexample-it/statuses/e855b00f0fd9e39221f2fac779427f22f5d849ba"}}}}