{"action":"created","comment":{"url":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/comments/238618225","pull_request_review_id":181189465,"id":238618225,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODYxODIyNQ==","diff_hunk":"@@ -0,0 +1,51 @@\n+package main\n+\n+import (\n+\t\"encoding/json\"\n+\t\"fmt\"\n+\t\"log\"\n+\t\"os\"\n+\n+\t\"github.com/kuzzleio/sdk-go/kuzzle\"\n+\t\"github.com/kuzzleio/sdk-go/protocol/websocket\"\n+)\n+\n+func main() {\n+\t// Create websocket protocol, replace \"kuzzle\" with\n+\t// your Kuzzle hostname like \"localhost\"\n+\tc := websocket.NewWebSocket(\"kuzzle\", nil)\n+\t// Instanciate a Kuzzle client\n+\tkuzzle, _ := kuzzle.NewKuzzle(c, nil)\n+\n+\t// Connect to the server.\n+\tif err := kuzzle.Connect(); err != nil {\n+\t\tlog.Fatal(err)\n+\t\tos.Exit(1)\n+\t}\n+\tfmt.Println(\"Connected!\")\n+\n+\t// Once connected, we can start to create document content...\n+\tcontent := json.RawMessage(`\n+\t\t{\n+\t\t\t\"name\": \"Sirkis\",\n+\t\t\t\"birthday\": \"1959-06-22\",\n+\t\t\t\"license\": \"B\"\n+\t\t}\n+\t`)\n+\n+\t// ... then save our document in \"yellow-taxi\" collection.\n+\tif _, err := kuzzle.Document.Create(\n+\t\t\"nyc-open-data\",\n+\t\t\"yellow-taxi\",\n+\t\t\"some-id\",\n+\t\tcontent,\n+\t\tnil,\n+\t); err != nil {\n+\t\tlog.Fatal(err)\n+\t\tos.Exit(1)\n+\t}\n+\tfmt.Println(\"New document added to yellow-taxi collection!\")\n+\n+\t// Finally, we can disconnect the SDK.","path":"src/sdk-reference/go/1/getting-started/snippets/document.go","position":49,"original_position":49,"commit_id":"14957476ba7fd2da28b51726be929f817ca77906","original_commit_id":"14957476ba7fd2da28b51726be929f817ca77906","user":{"login":"scottinet","id":12997967,"node_id":"MDQ6VXNlcjEyOTk3OTY3","avatar_url":"https://avatars0.githubusercontent.com/u/12997967?v=4","gravatar_id":"","url":"https://api.github.com/users/scottinet","html_url":"https://github.com/scottinet","followers_url":"https://api.github.com/users/scottinet/followers","following_url":"https://api.github.com/users/scottinet/following{/other_user}","gists_url":"https://api.github.com/users/scottinet/gists{/gist_id}","starred_url":"https://api.github.com/users/scottinet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottinet/subscriptions","organizations_url":"https://api.github.com/users/scottinet/orgs","repos_url":"https://api.github.com/users/scottinet/repos","events_url":"https://api.github.com/users/scottinet/events{/privacy}","received_events_url":"https://api.github.com/users/scottinet/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n\t// Disconnects the SDK.\r\n```","created_at":"2018-12-04T11:08:38Z","updated_at":"2018-12-04T11:31:55Z","html_url":"https://github.com/kuzzleio/documentation-V2/pull/147#discussion_r238618225","pull_request_url":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/147","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/comments/238618225"},"html":{"href":"https://github.com/kuzzleio/documentation-V2/pull/147#discussion_r238618225"},"pull_request":{"href":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/147"}}},"pull_request":{"url":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/147","id":231890193,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxODkwMTkz","html_url":"https://github.com/kuzzleio/documentation-V2/pull/147","diff_url":"https://github.com/kuzzleio/documentation-V2/pull/147.diff","patch_url":"https://github.com/kuzzleio/documentation-V2/pull/147.patch","issue_url":"https://api.github.com/repos/kuzzleio/documentation-V2/issues/147","number":147,"state":"open","locked":false,"title":"[KZL-761] Add Golang Getting Started page","user":{"login":"alexandrebouthinon","id":7868838,"node_id":"MDQ6VXNlcjc4Njg4Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/7868838?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandrebouthinon","html_url":"https://github.com/alexandrebouthinon","followers_url":"https://api.github.com/users/alexandrebouthinon/followers","following_url":"https://api.github.com/users/alexandrebouthinon/following{/other_user}","gists_url":"https://api.github.com/users/alexandrebouthinon/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrebouthinon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrebouthinon/subscriptions","organizations_url":"https://api.github.com/users/alexandrebouthinon/orgs","repos_url":"https://api.github.com/users/alexandrebouthinon/repos","events_url":"https://api.github.com/users/alexandrebouthinon/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrebouthinon/received_events","type":"User","site_admin":false},"body":"## What does this PR do?\r\nAdd a getting started section for Go SDK\r\n\r\n\r\n","created_at":"2018-11-19T08:36:56Z","updated_at":"2018-12-04T11:31:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59a24b8f396e965cc38c9b0af9b4c993da0472e8","assignee":{"login":"alexandrebouthinon","id":7868838,"node_id":"MDQ6VXNlcjc4Njg4Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/7868838?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandrebouthinon","html_url":"https://github.com/alexandrebouthinon","followers_url":"https://api.github.com/users/alexandrebouthinon/followers","following_url":"https://api.github.com/users/alexandrebouthinon/following{/other_user}","gists_url":"https://api.github.com/users/alexandrebouthinon/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrebouthinon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrebouthinon/subscriptions","organizations_url":"https://api.github.com/users/alexandrebouthinon/orgs","repos_url":"https://api.github.com/users/alexandrebouthinon/repos","events_url":"https://api.github.com/users/alexandrebouthinon/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrebouthinon/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexandrebouthinon","id":7868838,"node_id":"MDQ6VXNlcjc4Njg4Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/7868838?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandrebouthinon","html_url":"https://github.com/alexandrebouthinon","followers_url":"https://api.github.com/users/alexandrebouthinon/followers","following_url":"https://api.github.com/users/alexandrebouthinon/following{/other_user}","gists_url":"https://api.github.com/users/alexandrebouthinon/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrebouthinon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrebouthinon/subscriptions","organizations_url":"https://api.github.com/users/alexandrebouthinon/orgs","repos_url":"https://api.github.com/users/alexandrebouthinon/repos","events_url":"https://api.github.com/users/alexandrebouthinon/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrebouthinon/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":988453079,"node_id":"MDU6TGFiZWw5ODg0NTMwNzk=","url":"https://api.github.com/repos/kuzzleio/documentation-V2/labels/changelog:new-features","name":"changelog:new-features","color":"159818","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/147/commits","review_comments_url":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/147/comments","review_comment_url":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kuzzleio/documentation-V2/issues/147/comments","statuses_url":"https://api.github.com/repos/kuzzleio/documentation-V2/statuses/14957476ba7fd2da28b51726be929f817ca77906","head":{"label":"kuzzleio:KZL-761-go-getting","ref":"KZL-761-go-getting","sha":"14957476ba7fd2da28b51726be929f817ca77906","user":{"login":"kuzzleio","id":12933347,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTMzMzQ3","avatar_url":"https://avatars1.githubusercontent.com/u/12933347?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"repo":{"id":129883446,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk4ODM0NDY=","name":"documentation-V2","full_name":"kuzzleio/documentation-V2","private":false,"owner":{"login":"kuzzleio","id":12933347,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTMzMzQ3","avatar_url":"https://avatars1.githubusercontent.com/u/12933347?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kuzzleio/documentation-V2","description":"Kuzzle documentation new version","fork":false,"url":"https://api.github.com/repos/kuzzleio/documentation-V2","forks_url":"https://api.github.com/repos/kuzzleio/documentation-V2/forks","keys_url":"https://api.github.com/repos/kuzzleio/documentation-V2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuzzleio/documentation-V2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuzzleio/documentation-V2/teams","hooks_url":"https://api.github.com/repos/kuzzleio/documentation-V2/hooks","issue_events_url":"https://api.github.com/repos/kuzzleio/documentation-V2/issues/events{/number}","events_url":"https://api.github.com/repos/kuzzleio/documentation-V2/events","assignees_url":"https://api.github.com/repos/kuzzleio/documentation-V2/assignees{/user}","branches_url":"https://api.github.com/repos/kuzzleio/documentation-V2/branches{/branch}","tags_url":"https://api.github.com/repos/kuzzleio/documentation-V2/tags","blobs_url":"https://api.github.com/repos/kuzzleio/documentation-V2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuzzleio/documentation-V2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuzzleio/documentation-V2/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuzzleio/documentation-V2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuzzleio/documentation-V2/statuses/{sha}","languages_url":"https://api.github.com/repos/kuzzleio/documentation-V2/languages","stargazers_url":"https://api.github.com/repos/kuzzleio/documentation-V2/stargazers","contributors_url":"https://api.github.com/repos/kuzzleio/documentation-V2/contributors","subscribers_url":"https://api.github.com/repos/kuzzleio/documentation-V2/subscribers","subscription_url":"https://api.github.com/repos/kuzzleio/documentation-V2/subscription","commits_url":"https://api.github.com/repos/kuzzleio/documentation-V2/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuzzleio/documentation-V2/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuzzleio/documentation-V2/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuzzleio/documentation-V2/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuzzleio/documentation-V2/contents/{+path}","compare_url":"https://api.github.com/repos/kuzzleio/documentation-V2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuzzleio/documentation-V2/merges","archive_url":"https://api.github.com/repos/kuzzleio/documentation-V2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuzzleio/documentation-V2/downloads","issues_url":"https://api.github.com/repos/kuzzleio/documentation-V2/issues{/number}","pulls_url":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls{/number}","milestones_url":"https://api.github.com/repos/kuzzleio/documentation-V2/milestones{/number}","notifications_url":"https://api.github.com/repos/kuzzleio/documentation-V2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuzzleio/documentation-V2/labels{/name}","releases_url":"https://api.github.com/repos/kuzzleio/documentation-V2/releases{/id}","deployments_url":"https://api.github.com/repos/kuzzleio/documentation-V2/deployments","created_at":"2018-04-17T09:53:51Z","updated_at":"2018-12-03T16:45:37Z","pushed_at":"2018-12-04T10:50:05Z","git_url":"git://github.com/kuzzleio/documentation-V2.git","ssh_url":"git@github.com:kuzzleio/documentation-V2.git","clone_url":"https://github.com/kuzzleio/documentation-V2.git","svn_url":"https://github.com/kuzzleio/documentation-V2","homepage":null,"size":13582,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":2,"default_branch":"master"}},"base":{"label":"kuzzleio:master","ref":"master","sha":"56a7917d42ae62a891643ff4f744ea9670b2e850","user":{"login":"kuzzleio","id":12933347,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTMzMzQ3","avatar_url":"https://avatars1.githubusercontent.com/u/12933347?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"repo":{"id":129883446,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk4ODM0NDY=","name":"documentation-V2","full_name":"kuzzleio/documentation-V2","private":false,"owner":{"login":"kuzzleio","id":12933347,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTMzMzQ3","avatar_url":"https://avatars1.githubusercontent.com/u/12933347?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kuzzleio/documentation-V2","description":"Kuzzle documentation new version","fork":false,"url":"https://api.github.com/repos/kuzzleio/documentation-V2","forks_url":"https://api.github.com/repos/kuzzleio/documentation-V2/forks","keys_url":"https://api.github.com/repos/kuzzleio/documentation-V2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuzzleio/documentation-V2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuzzleio/documentation-V2/teams","hooks_url":"https://api.github.com/repos/kuzzleio/documentation-V2/hooks","issue_events_url":"https://api.github.com/repos/kuzzleio/documentation-V2/issues/events{/number}","events_url":"https://api.github.com/repos/kuzzleio/documentation-V2/events","assignees_url":"https://api.github.com/repos/kuzzleio/documentation-V2/assignees{/user}","branches_url":"https://api.github.com/repos/kuzzleio/documentation-V2/branches{/branch}","tags_url":"https://api.github.com/repos/kuzzleio/documentation-V2/tags","blobs_url":"https://api.github.com/repos/kuzzleio/documentation-V2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuzzleio/documentation-V2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuzzleio/documentation-V2/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuzzleio/documentation-V2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuzzleio/documentation-V2/statuses/{sha}","languages_url":"https://api.github.com/repos/kuzzleio/documentation-V2/languages","stargazers_url":"https://api.github.com/repos/kuzzleio/documentation-V2/stargazers","contributors_url":"https://api.github.com/repos/kuzzleio/documentation-V2/contributors","subscribers_url":"https://api.github.com/repos/kuzzleio/documentation-V2/subscribers","subscription_url":"https://api.github.com/repos/kuzzleio/documentation-V2/subscription","commits_url":"https://api.github.com/repos/kuzzleio/documentation-V2/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuzzleio/documentation-V2/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuzzleio/documentation-V2/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuzzleio/documentation-V2/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuzzleio/documentation-V2/contents/{+path}","compare_url":"https://api.github.com/repos/kuzzleio/documentation-V2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuzzleio/documentation-V2/merges","archive_url":"https://api.github.com/repos/kuzzleio/documentation-V2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuzzleio/documentation-V2/downloads","issues_url":"https://api.github.com/repos/kuzzleio/documentation-V2/issues{/number}","pulls_url":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls{/number}","milestones_url":"https://api.github.com/repos/kuzzleio/documentation-V2/milestones{/number}","notifications_url":"https://api.github.com/repos/kuzzleio/documentation-V2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuzzleio/documentation-V2/labels{/name}","releases_url":"https://api.github.com/repos/kuzzleio/documentation-V2/releases{/id}","deployments_url":"https://api.github.com/repos/kuzzleio/documentation-V2/deployments","created_at":"2018-04-17T09:53:51Z","updated_at":"2018-12-03T16:45:37Z","pushed_at":"2018-12-04T10:50:05Z","git_url":"git://github.com/kuzzleio/documentation-V2.git","ssh_url":"git@github.com:kuzzleio/documentation-V2.git","clone_url":"https://github.com/kuzzleio/documentation-V2.git","svn_url":"https://github.com/kuzzleio/documentation-V2","homepage":null,"size":13582,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/147"},"html":{"href":"https://github.com/kuzzleio/documentation-V2/pull/147"},"issue":{"href":"https://api.github.com/repos/kuzzleio/documentation-V2/issues/147"},"comments":{"href":"https://api.github.com/repos/kuzzleio/documentation-V2/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kuzzleio/documentation-V2/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/kuzzleio/documentation-V2/statuses/14957476ba7fd2da28b51726be929f817ca77906"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"scottinet"}}