{"action":"created","comment":{"url":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/comments/45721206","id":45721206,"diff_hunk":"@@ -214,3 +165,33 @@ func Contains(f resource.Filer, contents ...*regexp.Regexp) error {\n \t\treturn fmt.Errorf(\"%s does not match any provided regular expression\", f)\n \t})\n }\n+\n+// Md5 checks if the provided file md5 checksum is the same as the one passed in as paramter\n+// It returs error if the provided file can't be opened\n+func Md5(f resource.Filer, sum string) error {","path":"resource/file/file.go","position":145,"original_position":145,"commit_id":"a5d72d0c88e96d4f44d7de867c1ec2980378dffc","original_commit_id":"a5d72d0c88e96d4f44d7de867c1ec2980378dffc","user":{"login":"milosgajdos83","id":1392526,"avatar_url":"https://avatars.githubusercontent.com/u/1392526?v=3","gravatar_id":"","url":"https://api.github.com/users/milosgajdos83","html_url":"https://github.com/milosgajdos83","followers_url":"https://api.github.com/users/milosgajdos83/followers","following_url":"https://api.github.com/users/milosgajdos83/following{/other_user}","gists_url":"https://api.github.com/users/milosgajdos83/gists{/gist_id}","starred_url":"https://api.github.com/users/milosgajdos83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milosgajdos83/subscriptions","organizations_url":"https://api.github.com/users/milosgajdos83/orgs","repos_url":"https://api.github.com/users/milosgajdos83/repos","events_url":"https://api.github.com/users/milosgajdos83/events{/privacy}","received_events_url":"https://api.github.com/users/milosgajdos83/received_events","type":"User","site_admin":false},"body":"How about `IsMd5Sum` to be consistent with the rest of the functions in this resource ?","created_at":"2015-11-24T11:00:54Z","updated_at":"2015-11-24T11:00:54Z","html_url":"https://github.com/milosgajdos83/servpeek/pull/7#discussion_r45721206","pull_request_url":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/comments/45721206"},"html":{"href":"https://github.com/milosgajdos83/servpeek/pull/7#discussion_r45721206"},"pull_request":{"href":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/7","id":51603244,"html_url":"https://github.com/milosgajdos83/servpeek/pull/7","diff_url":"https://github.com/milosgajdos83/servpeek/pull/7.diff","patch_url":"https://github.com/milosgajdos83/servpeek/pull/7.patch","issue_url":"https://api.github.com/repos/milosgajdos83/servpeek/issues/7","number":7,"state":"open","locked":false,"title":"Added more tests to file resource. Platform build guards for file resource.","user":{"login":"milosgajdos83","id":1392526,"avatar_url":"https://avatars.githubusercontent.com/u/1392526?v=3","gravatar_id":"","url":"https://api.github.com/users/milosgajdos83","html_url":"https://github.com/milosgajdos83","followers_url":"https://api.github.com/users/milosgajdos83/followers","following_url":"https://api.github.com/users/milosgajdos83/following{/other_user}","gists_url":"https://api.github.com/users/milosgajdos83/gists{/gist_id}","starred_url":"https://api.github.com/users/milosgajdos83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milosgajdos83/subscriptions","organizations_url":"https://api.github.com/users/milosgajdos83/orgs","repos_url":"https://api.github.com/users/milosgajdos83/repos","events_url":"https://api.github.com/users/milosgajdos83/events{/privacy}","received_events_url":"https://api.github.com/users/milosgajdos83/received_events","type":"User","site_admin":false},"body":"File resource should now have almost full test coverage. Some platform\r\nspecific stuff related to file resource have been guarded by build tags\r\nto avoid results confusion should some people use it on unsupported platforms.","created_at":"2015-11-24T00:53:35Z","updated_at":"2015-11-24T11:00:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19865bfae7e0501cb1ea6d0d227c68d25b251562","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/7/commits","review_comments_url":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/7/comments","review_comment_url":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/comments{/number}","comments_url":"https://api.github.com/repos/milosgajdos83/servpeek/issues/7/comments","statuses_url":"https://api.github.com/repos/milosgajdos83/servpeek/statuses/a5d72d0c88e96d4f44d7de867c1ec2980378dffc","head":{"label":"milosgajdos83:file-test","ref":"file-test","sha":"a5d72d0c88e96d4f44d7de867c1ec2980378dffc","user":{"login":"milosgajdos83","id":1392526,"avatar_url":"https://avatars.githubusercontent.com/u/1392526?v=3","gravatar_id":"","url":"https://api.github.com/users/milosgajdos83","html_url":"https://github.com/milosgajdos83","followers_url":"https://api.github.com/users/milosgajdos83/followers","following_url":"https://api.github.com/users/milosgajdos83/following{/other_user}","gists_url":"https://api.github.com/users/milosgajdos83/gists{/gist_id}","starred_url":"https://api.github.com/users/milosgajdos83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milosgajdos83/subscriptions","organizations_url":"https://api.github.com/users/milosgajdos83/orgs","repos_url":"https://api.github.com/users/milosgajdos83/repos","events_url":"https://api.github.com/users/milosgajdos83/events{/privacy}","received_events_url":"https://api.github.com/users/milosgajdos83/received_events","type":"User","site_admin":false},"repo":{"id":41961203,"name":"servpeek","full_name":"milosgajdos83/servpeek","owner":{"login":"milosgajdos83","id":1392526,"avatar_url":"https://avatars.githubusercontent.com/u/1392526?v=3","gravatar_id":"","url":"https://api.github.com/users/milosgajdos83","html_url":"https://github.com/milosgajdos83","followers_url":"https://api.github.com/users/milosgajdos83/followers","following_url":"https://api.github.com/users/milosgajdos83/following{/other_user}","gists_url":"https://api.github.com/users/milosgajdos83/gists{/gist_id}","starred_url":"https://api.github.com/users/milosgajdos83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milosgajdos83/subscriptions","organizations_url":"https://api.github.com/users/milosgajdos83/orgs","repos_url":"https://api.github.com/users/milosgajdos83/repos","events_url":"https://api.github.com/users/milosgajdos83/events{/privacy}","received_events_url":"https://api.github.com/users/milosgajdos83/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/milosgajdos83/servpeek","description":"Introspective peek into your server guts","fork":false,"url":"https://api.github.com/repos/milosgajdos83/servpeek","forks_url":"https://api.github.com/repos/milosgajdos83/servpeek/forks","keys_url":"https://api.github.com/repos/milosgajdos83/servpeek/keys{/key_id}","collaborators_url":"https://api.github.com/repos/milosgajdos83/servpeek/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/milosgajdos83/servpeek/teams","hooks_url":"https://api.github.com/repos/milosgajdos83/servpeek/hooks","issue_events_url":"https://api.github.com/repos/milosgajdos83/servpeek/issues/events{/number}","events_url":"https://api.github.com/repos/milosgajdos83/servpeek/events","assignees_url":"https://api.github.com/repos/milosgajdos83/servpeek/assignees{/user}","branches_url":"https://api.github.com/repos/milosgajdos83/servpeek/branches{/branch}","tags_url":"https://api.github.com/repos/milosgajdos83/servpeek/tags","blobs_url":"https://api.github.com/repos/milosgajdos83/servpeek/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/milosgajdos83/servpeek/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/milosgajdos83/servpeek/git/refs{/sha}","trees_url":"https://api.github.com/repos/milosgajdos83/servpeek/git/trees{/sha}","statuses_url":"https://api.github.com/repos/milosgajdos83/servpeek/statuses/{sha}","languages_url":"https://api.github.com/repos/milosgajdos83/servpeek/languages","stargazers_url":"https://api.github.com/repos/milosgajdos83/servpeek/stargazers","contributors_url":"https://api.github.com/repos/milosgajdos83/servpeek/contributors","subscribers_url":"https://api.github.com/repos/milosgajdos83/servpeek/subscribers","subscription_url":"https://api.github.com/repos/milosgajdos83/servpeek/subscription","commits_url":"https://api.github.com/repos/milosgajdos83/servpeek/commits{/sha}","git_commits_url":"https://api.github.com/repos/milosgajdos83/servpeek/git/commits{/sha}","comments_url":"https://api.github.com/repos/milosgajdos83/servpeek/comments{/number}","issue_comment_url":"https://api.github.com/repos/milosgajdos83/servpeek/issues/comments{/number}","contents_url":"https://api.github.com/repos/milosgajdos83/servpeek/contents/{+path}","compare_url":"https://api.github.com/repos/milosgajdos83/servpeek/compare/{base}...{head}","merges_url":"https://api.github.com/repos/milosgajdos83/servpeek/merges","archive_url":"https://api.github.com/repos/milosgajdos83/servpeek/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/milosgajdos83/servpeek/downloads","issues_url":"https://api.github.com/repos/milosgajdos83/servpeek/issues{/number}","pulls_url":"https://api.github.com/repos/milosgajdos83/servpeek/pulls{/number}","milestones_url":"https://api.github.com/repos/milosgajdos83/servpeek/milestones{/number}","notifications_url":"https://api.github.com/repos/milosgajdos83/servpeek/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/milosgajdos83/servpeek/labels{/name}","releases_url":"https://api.github.com/repos/milosgajdos83/servpeek/releases{/id}","created_at":"2015-09-05T13:09:02Z","updated_at":"2015-11-19T10:18:29Z","pushed_at":"2015-11-24T00:53:36Z","git_url":"git://github.com/milosgajdos83/servpeek.git","ssh_url":"git@github.com:milosgajdos83/servpeek.git","clone_url":"https://github.com/milosgajdos83/servpeek.git","svn_url":"https://github.com/milosgajdos83/servpeek","homepage":null,"size":93,"stargazers_count":11,"watchers_count":11,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":11,"default_branch":"master"}},"base":{"label":"milosgajdos83:master","ref":"master","sha":"2b2764309d8fec76f90b9d2cc47738f113b2b2f7","user":{"login":"milosgajdos83","id":1392526,"avatar_url":"https://avatars.githubusercontent.com/u/1392526?v=3","gravatar_id":"","url":"https://api.github.com/users/milosgajdos83","html_url":"https://github.com/milosgajdos83","followers_url":"https://api.github.com/users/milosgajdos83/followers","following_url":"https://api.github.com/users/milosgajdos83/following{/other_user}","gists_url":"https://api.github.com/users/milosgajdos83/gists{/gist_id}","starred_url":"https://api.github.com/users/milosgajdos83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milosgajdos83/subscriptions","organizations_url":"https://api.github.com/users/milosgajdos83/orgs","repos_url":"https://api.github.com/users/milosgajdos83/repos","events_url":"https://api.github.com/users/milosgajdos83/events{/privacy}","received_events_url":"https://api.github.com/users/milosgajdos83/received_events","type":"User","site_admin":false},"repo":{"id":41961203,"name":"servpeek","full_name":"milosgajdos83/servpeek","owner":{"login":"milosgajdos83","id":1392526,"avatar_url":"https://avatars.githubusercontent.com/u/1392526?v=3","gravatar_id":"","url":"https://api.github.com/users/milosgajdos83","html_url":"https://github.com/milosgajdos83","followers_url":"https://api.github.com/users/milosgajdos83/followers","following_url":"https://api.github.com/users/milosgajdos83/following{/other_user}","gists_url":"https://api.github.com/users/milosgajdos83/gists{/gist_id}","starred_url":"https://api.github.com/users/milosgajdos83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milosgajdos83/subscriptions","organizations_url":"https://api.github.com/users/milosgajdos83/orgs","repos_url":"https://api.github.com/users/milosgajdos83/repos","events_url":"https://api.github.com/users/milosgajdos83/events{/privacy}","received_events_url":"https://api.github.com/users/milosgajdos83/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/milosgajdos83/servpeek","description":"Introspective peek into your server guts","fork":false,"url":"https://api.github.com/repos/milosgajdos83/servpeek","forks_url":"https://api.github.com/repos/milosgajdos83/servpeek/forks","keys_url":"https://api.github.com/repos/milosgajdos83/servpeek/keys{/key_id}","collaborators_url":"https://api.github.com/repos/milosgajdos83/servpeek/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/milosgajdos83/servpeek/teams","hooks_url":"https://api.github.com/repos/milosgajdos83/servpeek/hooks","issue_events_url":"https://api.github.com/repos/milosgajdos83/servpeek/issues/events{/number}","events_url":"https://api.github.com/repos/milosgajdos83/servpeek/events","assignees_url":"https://api.github.com/repos/milosgajdos83/servpeek/assignees{/user}","branches_url":"https://api.github.com/repos/milosgajdos83/servpeek/branches{/branch}","tags_url":"https://api.github.com/repos/milosgajdos83/servpeek/tags","blobs_url":"https://api.github.com/repos/milosgajdos83/servpeek/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/milosgajdos83/servpeek/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/milosgajdos83/servpeek/git/refs{/sha}","trees_url":"https://api.github.com/repos/milosgajdos83/servpeek/git/trees{/sha}","statuses_url":"https://api.github.com/repos/milosgajdos83/servpeek/statuses/{sha}","languages_url":"https://api.github.com/repos/milosgajdos83/servpeek/languages","stargazers_url":"https://api.github.com/repos/milosgajdos83/servpeek/stargazers","contributors_url":"https://api.github.com/repos/milosgajdos83/servpeek/contributors","subscribers_url":"https://api.github.com/repos/milosgajdos83/servpeek/subscribers","subscription_url":"https://api.github.com/repos/milosgajdos83/servpeek/subscription","commits_url":"https://api.github.com/repos/milosgajdos83/servpeek/commits{/sha}","git_commits_url":"https://api.github.com/repos/milosgajdos83/servpeek/git/commits{/sha}","comments_url":"https://api.github.com/repos/milosgajdos83/servpeek/comments{/number}","issue_comment_url":"https://api.github.com/repos/milosgajdos83/servpeek/issues/comments{/number}","contents_url":"https://api.github.com/repos/milosgajdos83/servpeek/contents/{+path}","compare_url":"https://api.github.com/repos/milosgajdos83/servpeek/compare/{base}...{head}","merges_url":"https://api.github.com/repos/milosgajdos83/servpeek/merges","archive_url":"https://api.github.com/repos/milosgajdos83/servpeek/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/milosgajdos83/servpeek/downloads","issues_url":"https://api.github.com/repos/milosgajdos83/servpeek/issues{/number}","pulls_url":"https://api.github.com/repos/milosgajdos83/servpeek/pulls{/number}","milestones_url":"https://api.github.com/repos/milosgajdos83/servpeek/milestones{/number}","notifications_url":"https://api.github.com/repos/milosgajdos83/servpeek/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/milosgajdos83/servpeek/labels{/name}","releases_url":"https://api.github.com/repos/milosgajdos83/servpeek/releases{/id}","created_at":"2015-09-05T13:09:02Z","updated_at":"2015-11-19T10:18:29Z","pushed_at":"2015-11-24T00:53:36Z","git_url":"git://github.com/milosgajdos83/servpeek.git","ssh_url":"git@github.com:milosgajdos83/servpeek.git","clone_url":"https://github.com/milosgajdos83/servpeek.git","svn_url":"https://github.com/milosgajdos83/servpeek","homepage":null,"size":93,"stargazers_count":11,"watchers_count":11,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/7"},"html":{"href":"https://github.com/milosgajdos83/servpeek/pull/7"},"issue":{"href":"https://api.github.com/repos/milosgajdos83/servpeek/issues/7"},"comments":{"href":"https://api.github.com/repos/milosgajdos83/servpeek/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/milosgajdos83/servpeek/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/milosgajdos83/servpeek/statuses/a5d72d0c88e96d4f44d7de867c1ec2980378dffc"}}}}