{"action":"created","comment":{"url":"https://api.github.com/repos/davecgh/go-spew/pulls/comments/30993986","id":30993986,"diff_hunk":"@@ -65,6 +65,34 @@ spew.Fprintf(someWriter, \"myVar1: %v -- myVar2: %+v\", myVar1, myVar2)\n spew.Fprintf(someWriter, \"myVar3: %#v -- myVar4: %#+v\", myVar3, myVar4)\n ```\n \n+## Debugging a Web Application Example\n+\n+Here is an example of how you can use `spew.Sdump()` to help debug a web application. Please be sure to wrap your output using the `html.EscapeString()` function for safety reasons. You should also only use this debugging technique in a development environment, never in production.\n+\n+```Go\n+package main\n+\n+import (\n+    \"fmt\"\n+    \"html\"\n+    \"net/http\"\n+\n+    \"github.com/davecgh/go-spew/spew\"\n+","path":"README.md","position":17,"original_position":17,"commit_id":"fdce079bf186b1145e0b2e09b98518ef96dde40e","original_commit_id":"fdce079bf186b1145e0b2e09b98518ef96dde40e","user":{"login":"davecgh","id":2115102,"avatar_url":"https://avatars.githubusercontent.com/u/2115102?v=3","gravatar_id":"","url":"https://api.github.com/users/davecgh","html_url":"https://github.com/davecgh","followers_url":"https://api.github.com/users/davecgh/followers","following_url":"https://api.github.com/users/davecgh/following{/other_user}","gists_url":"https://api.github.com/users/davecgh/gists{/gist_id}","starred_url":"https://api.github.com/users/davecgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecgh/subscriptions","organizations_url":"https://api.github.com/users/davecgh/orgs","repos_url":"https://api.github.com/users/davecgh/repos","events_url":"https://api.github.com/users/davecgh/events{/privacy}","received_events_url":"https://api.github.com/users/davecgh/received_events","type":"User","site_admin":false},"body":"Oh, I thought I saw your comment on the line above it.  You're right of course.  :+1: ","created_at":"2015-05-25T20:41:28Z","updated_at":"2015-05-25T20:41:28Z","html_url":"https://github.com/davecgh/go-spew/pull/34#discussion_r30993986","pull_request_url":"https://api.github.com/repos/davecgh/go-spew/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/davecgh/go-spew/pulls/comments/30993986"},"html":{"href":"https://github.com/davecgh/go-spew/pull/34#discussion_r30993986"},"pull_request":{"href":"https://api.github.com/repos/davecgh/go-spew/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/davecgh/go-spew/pulls/34","id":36141238,"html_url":"https://github.com/davecgh/go-spew/pull/34","diff_url":"https://github.com/davecgh/go-spew/pull/34.diff","patch_url":"https://github.com/davecgh/go-spew/pull/34.patch","issue_url":"https://api.github.com/repos/davecgh/go-spew/issues/34","number":34,"state":"open","locked":false,"title":"Provide an example on how to debug a web app.","user":{"login":"jbuberel","id":1711364,"avatar_url":"https://avatars.githubusercontent.com/u/1711364?v=3","gravatar_id":"","url":"https://api.github.com/users/jbuberel","html_url":"https://github.com/jbuberel","followers_url":"https://api.github.com/users/jbuberel/followers","following_url":"https://api.github.com/users/jbuberel/following{/other_user}","gists_url":"https://api.github.com/users/jbuberel/gists{/gist_id}","starred_url":"https://api.github.com/users/jbuberel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbuberel/subscriptions","organizations_url":"https://api.github.com/users/jbuberel/orgs","repos_url":"https://api.github.com/users/jbuberel/repos","events_url":"https://api.github.com/users/jbuberel/events{/privacy}","received_events_url":"https://api.github.com/users/jbuberel/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-25T13:58:31Z","updated_at":"2015-05-25T20:41:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab8a2fa3abe7acb90e3399a41f73c901b1f84613","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/davecgh/go-spew/pulls/34/commits","review_comments_url":"https://api.github.com/repos/davecgh/go-spew/pulls/34/comments","review_comment_url":"https://api.github.com/repos/davecgh/go-spew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/davecgh/go-spew/issues/34/comments","statuses_url":"https://api.github.com/repos/davecgh/go-spew/statuses/fdce079bf186b1145e0b2e09b98518ef96dde40e","head":{"label":"jbuberel:patch-1","ref":"patch-1","sha":"fdce079bf186b1145e0b2e09b98518ef96dde40e","user":{"login":"jbuberel","id":1711364,"avatar_url":"https://avatars.githubusercontent.com/u/1711364?v=3","gravatar_id":"","url":"https://api.github.com/users/jbuberel","html_url":"https://github.com/jbuberel","followers_url":"https://api.github.com/users/jbuberel/followers","following_url":"https://api.github.com/users/jbuberel/following{/other_user}","gists_url":"https://api.github.com/users/jbuberel/gists{/gist_id}","starred_url":"https://api.github.com/users/jbuberel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbuberel/subscriptions","organizations_url":"https://api.github.com/users/jbuberel/orgs","repos_url":"https://api.github.com/users/jbuberel/repos","events_url":"https://api.github.com/users/jbuberel/events{/privacy}","received_events_url":"https://api.github.com/users/jbuberel/received_events","type":"User","site_admin":false},"repo":{"id":36234013,"name":"go-spew","full_name":"jbuberel/go-spew","owner":{"login":"jbuberel","id":1711364,"avatar_url":"https://avatars.githubusercontent.com/u/1711364?v=3","gravatar_id":"","url":"https://api.github.com/users/jbuberel","html_url":"https://github.com/jbuberel","followers_url":"https://api.github.com/users/jbuberel/followers","following_url":"https://api.github.com/users/jbuberel/following{/other_user}","gists_url":"https://api.github.com/users/jbuberel/gists{/gist_id}","starred_url":"https://api.github.com/users/jbuberel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbuberel/subscriptions","organizations_url":"https://api.github.com/users/jbuberel/orgs","repos_url":"https://api.github.com/users/jbuberel/repos","events_url":"https://api.github.com/users/jbuberel/events{/privacy}","received_events_url":"https://api.github.com/users/jbuberel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbuberel/go-spew","description":"Implements a deep pretty printer for Go data structures to aid in debugging","fork":true,"url":"https://api.github.com/repos/jbuberel/go-spew","forks_url":"https://api.github.com/repos/jbuberel/go-spew/forks","keys_url":"https://api.github.com/repos/jbuberel/go-spew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbuberel/go-spew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbuberel/go-spew/teams","hooks_url":"https://api.github.com/repos/jbuberel/go-spew/hooks","issue_events_url":"https://api.github.com/repos/jbuberel/go-spew/issues/events{/number}","events_url":"https://api.github.com/repos/jbuberel/go-spew/events","assignees_url":"https://api.github.com/repos/jbuberel/go-spew/assignees{/user}","branches_url":"https://api.github.com/repos/jbuberel/go-spew/branches{/branch}","tags_url":"https://api.github.com/repos/jbuberel/go-spew/tags","blobs_url":"https://api.github.com/repos/jbuberel/go-spew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbuberel/go-spew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbuberel/go-spew/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbuberel/go-spew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbuberel/go-spew/statuses/{sha}","languages_url":"https://api.github.com/repos/jbuberel/go-spew/languages","stargazers_url":"https://api.github.com/repos/jbuberel/go-spew/stargazers","contributors_url":"https://api.github.com/repos/jbuberel/go-spew/contributors","subscribers_url":"https://api.github.com/repos/jbuberel/go-spew/subscribers","subscription_url":"https://api.github.com/repos/jbuberel/go-spew/subscription","commits_url":"https://api.github.com/repos/jbuberel/go-spew/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbuberel/go-spew/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbuberel/go-spew/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbuberel/go-spew/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbuberel/go-spew/contents/{+path}","compare_url":"https://api.github.com/repos/jbuberel/go-spew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbuberel/go-spew/merges","archive_url":"https://api.github.com/repos/jbuberel/go-spew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbuberel/go-spew/downloads","issues_url":"https://api.github.com/repos/jbuberel/go-spew/issues{/number}","pulls_url":"https://api.github.com/repos/jbuberel/go-spew/pulls{/number}","milestones_url":"https://api.github.com/repos/jbuberel/go-spew/milestones{/number}","notifications_url":"https://api.github.com/repos/jbuberel/go-spew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbuberel/go-spew/labels{/name}","releases_url":"https://api.github.com/repos/jbuberel/go-spew/releases{/id}","created_at":"2015-05-25T13:54:36Z","updated_at":"2015-05-25T13:54:36Z","pushed_at":"2015-05-25T20:17:18Z","git_url":"git://github.com/jbuberel/go-spew.git","ssh_url":"git@github.com:jbuberel/go-spew.git","clone_url":"https://github.com/jbuberel/go-spew.git","svn_url":"https://github.com/jbuberel/go-spew","homepage":null,"size":706,"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":"davecgh:master","ref":"master","sha":"a6eef0c3a9a158ce0fc790d13fadb69186a36cb5","user":{"login":"davecgh","id":2115102,"avatar_url":"https://avatars.githubusercontent.com/u/2115102?v=3","gravatar_id":"","url":"https://api.github.com/users/davecgh","html_url":"https://github.com/davecgh","followers_url":"https://api.github.com/users/davecgh/followers","following_url":"https://api.github.com/users/davecgh/following{/other_user}","gists_url":"https://api.github.com/users/davecgh/gists{/gist_id}","starred_url":"https://api.github.com/users/davecgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecgh/subscriptions","organizations_url":"https://api.github.com/users/davecgh/orgs","repos_url":"https://api.github.com/users/davecgh/repos","events_url":"https://api.github.com/users/davecgh/events{/privacy}","received_events_url":"https://api.github.com/users/davecgh/received_events","type":"User","site_admin":false},"repo":{"id":7515336,"name":"go-spew","full_name":"davecgh/go-spew","owner":{"login":"davecgh","id":2115102,"avatar_url":"https://avatars.githubusercontent.com/u/2115102?v=3","gravatar_id":"","url":"https://api.github.com/users/davecgh","html_url":"https://github.com/davecgh","followers_url":"https://api.github.com/users/davecgh/followers","following_url":"https://api.github.com/users/davecgh/following{/other_user}","gists_url":"https://api.github.com/users/davecgh/gists{/gist_id}","starred_url":"https://api.github.com/users/davecgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecgh/subscriptions","organizations_url":"https://api.github.com/users/davecgh/orgs","repos_url":"https://api.github.com/users/davecgh/repos","events_url":"https://api.github.com/users/davecgh/events{/privacy}","received_events_url":"https://api.github.com/users/davecgh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davecgh/go-spew","description":"Implements a deep pretty printer for Go data structures to aid in debugging","fork":false,"url":"https://api.github.com/repos/davecgh/go-spew","forks_url":"https://api.github.com/repos/davecgh/go-spew/forks","keys_url":"https://api.github.com/repos/davecgh/go-spew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davecgh/go-spew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davecgh/go-spew/teams","hooks_url":"https://api.github.com/repos/davecgh/go-spew/hooks","issue_events_url":"https://api.github.com/repos/davecgh/go-spew/issues/events{/number}","events_url":"https://api.github.com/repos/davecgh/go-spew/events","assignees_url":"https://api.github.com/repos/davecgh/go-spew/assignees{/user}","branches_url":"https://api.github.com/repos/davecgh/go-spew/branches{/branch}","tags_url":"https://api.github.com/repos/davecgh/go-spew/tags","blobs_url":"https://api.github.com/repos/davecgh/go-spew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davecgh/go-spew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davecgh/go-spew/git/refs{/sha}","trees_url":"https://api.github.com/repos/davecgh/go-spew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davecgh/go-spew/statuses/{sha}","languages_url":"https://api.github.com/repos/davecgh/go-spew/languages","stargazers_url":"https://api.github.com/repos/davecgh/go-spew/stargazers","contributors_url":"https://api.github.com/repos/davecgh/go-spew/contributors","subscribers_url":"https://api.github.com/repos/davecgh/go-spew/subscribers","subscription_url":"https://api.github.com/repos/davecgh/go-spew/subscription","commits_url":"https://api.github.com/repos/davecgh/go-spew/commits{/sha}","git_commits_url":"https://api.github.com/repos/davecgh/go-spew/git/commits{/sha}","comments_url":"https://api.github.com/repos/davecgh/go-spew/comments{/number}","issue_comment_url":"https://api.github.com/repos/davecgh/go-spew/issues/comments{/number}","contents_url":"https://api.github.com/repos/davecgh/go-spew/contents/{+path}","compare_url":"https://api.github.com/repos/davecgh/go-spew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davecgh/go-spew/merges","archive_url":"https://api.github.com/repos/davecgh/go-spew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davecgh/go-spew/downloads","issues_url":"https://api.github.com/repos/davecgh/go-spew/issues{/number}","pulls_url":"https://api.github.com/repos/davecgh/go-spew/pulls{/number}","milestones_url":"https://api.github.com/repos/davecgh/go-spew/milestones{/number}","notifications_url":"https://api.github.com/repos/davecgh/go-spew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davecgh/go-spew/labels{/name}","releases_url":"https://api.github.com/repos/davecgh/go-spew/releases{/id}","created_at":"2013-01-09T05:18:22Z","updated_at":"2015-05-25T20:37:07Z","pushed_at":"2015-05-25T20:17:18Z","git_url":"git://github.com/davecgh/go-spew.git","ssh_url":"git@github.com:davecgh/go-spew.git","clone_url":"https://github.com/davecgh/go-spew.git","svn_url":"https://github.com/davecgh/go-spew","homepage":null,"size":706,"stargazers_count":540,"watchers_count":540,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":7,"forks":37,"open_issues":7,"watchers":540,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/davecgh/go-spew/pulls/34"},"html":{"href":"https://github.com/davecgh/go-spew/pull/34"},"issue":{"href":"https://api.github.com/repos/davecgh/go-spew/issues/34"},"comments":{"href":"https://api.github.com/repos/davecgh/go-spew/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/davecgh/go-spew/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/davecgh/go-spew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/davecgh/go-spew/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/davecgh/go-spew/statuses/fdce079bf186b1145e0b2e09b98518ef96dde40e"}}}}