{"action":"created","comment":{"url":"https://api.github.com/repos/vbauerster/mpb/pulls/comments/191364553","pull_request_review_id":123919555,"id":191364553,"diff_hunk":"@@ -266,3 +266,84 @@ func CalcPercentage(total, current, width int64) (perc int64) {\n \t}\n \treturn int64(ceil)\n }\n+\n+// SpeedNoUnit returns raw I/O operation speed decorator.\n+//\n+//\t`unitFormat` printf compatible verb for value, like \"%f\" or \"%d\"\n+//\n+//\t`width` width reservation to apply, ignored if `DwidthSync` bit is set\n+//\n+//\t`conf` bit set config, [DidentRight|DwidthSync|DextraSpace]\n+//\n+// unitFormat example:\n+//\n+//\t\"%.1f\" = \"1.0\" or \"% .1f\" = \"1.0\"\n+func SpeedNoUnit(unitFormat string, minWidth, conf int) DecoratorFunc {\n+\treturn speed(unitFormat, 0, minWidth, conf)\n+}\n+\n+// SpeedKibiByte returns human friendly I/O operation speed decorator,\n+//\n+//\t`unitFormat` printf compatible verb for value, like \"%f\" or \"%d\"\n+//\n+//\t`width` width reservation to apply, ignored if `DwidthSync` bit is set\n+//\n+//\t`conf` bit set config, [DidentRight|DwidthSync|DextraSpace]\n+//\n+// unitFormat example:\n+//\n+//\t\"%.1f\" = \"1.0MB/s\" or \"% .1f\" = \"1.0 MB/s\"\n+func SpeedKibiByte(unitFormat string, minWidth, conf int) DecoratorFunc {\n+\treturn speed(unitFormat, unitKiB, minWidth, conf)\n+}\n+\n+// SpeedKiloByte returns human friendly I/O operation speed decorator,\n+//\n+//\t`unitFormat` printf compatible verb for value, like \"%f\" or \"%d\"\n+//\n+//\t`width` width reservation to apply, ignored if `DwidthSync` bit is set\n+//\n+//\t`conf` bit set config, [DidentRight|DwidthSync|DextraSpace]\n+//\n+// unitFormat example:\n+//\n+//\t\"%.1f\" = \"1.0MB/s\" or \"% .1f\" = \"1.0 MB/s\"\n+func SpeedKiloByte(unitFormat string, minWidth, conf int) DecoratorFunc {","path":"decor/decorators.go","position":46,"original_position":46,"commit_id":"7ad6ccbe317ca4218d4dcec5ca4c24d4db273756","original_commit_id":"7ad6ccbe317ca4218d4dcec5ca4c24d4db273756","user":{"login":"vbauerster","id":2206533,"avatar_url":"https://avatars1.githubusercontent.com/u/2206533?v=4","gravatar_id":"","url":"https://api.github.com/users/vbauerster","html_url":"https://github.com/vbauerster","followers_url":"https://api.github.com/users/vbauerster/followers","following_url":"https://api.github.com/users/vbauerster/following{/other_user}","gists_url":"https://api.github.com/users/vbauerster/gists{/gist_id}","starred_url":"https://api.github.com/users/vbauerster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbauerster/subscriptions","organizations_url":"https://api.github.com/users/vbauerster/orgs","repos_url":"https://api.github.com/users/vbauerster/repos","events_url":"https://api.github.com/users/vbauerster/events{/privacy}","received_events_url":"https://api.github.com/users/vbauerster/received_events","type":"User","site_admin":false},"body":"Can you please rename `minWidth` to `width`, so godoc comment matches actual param name.","created_at":"2018-05-29T09:47:04Z","updated_at":"2018-05-29T09:52:30Z","html_url":"https://github.com/vbauerster/mpb/pull/23#discussion_r191364553","pull_request_url":"https://api.github.com/repos/vbauerster/mpb/pulls/23","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/vbauerster/mpb/pulls/comments/191364553"},"html":{"href":"https://github.com/vbauerster/mpb/pull/23#discussion_r191364553"},"pull_request":{"href":"https://api.github.com/repos/vbauerster/mpb/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/vbauerster/mpb/pulls/23","id":189960723,"html_url":"https://github.com/vbauerster/mpb/pull/23","diff_url":"https://github.com/vbauerster/mpb/pull/23.diff","patch_url":"https://github.com/vbauerster/mpb/pull/23.patch","issue_url":"https://api.github.com/repos/vbauerster/mpb/issues/23","number":23,"state":"open","locked":false,"title":"Add I/O operation speed decorator","user":{"login":"xakep666","id":3612285,"avatar_url":"https://avatars3.githubusercontent.com/u/3612285?v=4","gravatar_id":"","url":"https://api.github.com/users/xakep666","html_url":"https://github.com/xakep666","followers_url":"https://api.github.com/users/xakep666/followers","following_url":"https://api.github.com/users/xakep666/following{/other_user}","gists_url":"https://api.github.com/users/xakep666/gists{/gist_id}","starred_url":"https://api.github.com/users/xakep666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xakep666/subscriptions","organizations_url":"https://api.github.com/users/xakep666/orgs","repos_url":"https://api.github.com/users/xakep666/repos","events_url":"https://api.github.com/users/xakep666/events{/privacy}","received_events_url":"https://api.github.com/users/xakep666/received_events","type":"User","site_admin":false},"body":"Unit variants: KiB, kB, no unit\r\nExample gifs:\r\n![mpb-multi](https://user-images.githubusercontent.com/3612285/40423342-e70b3658-5e9a-11e8-800d-cab8a8a1376b.gif)\r\n![mpb-single](https://user-images.githubusercontent.com/3612285/40423343-e734dea4-5e9a-11e8-9495-fe43de04f1a6.gif)\r\n\r\n","created_at":"2018-05-23T12:39:58Z","updated_at":"2018-05-29T09:52:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2537ca02e8516924efd5f61d058558b506707e09","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vbauerster/mpb/pulls/23/commits","review_comments_url":"https://api.github.com/repos/vbauerster/mpb/pulls/23/comments","review_comment_url":"https://api.github.com/repos/vbauerster/mpb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vbauerster/mpb/issues/23/comments","statuses_url":"https://api.github.com/repos/vbauerster/mpb/statuses/7ad6ccbe317ca4218d4dcec5ca4c24d4db273756","head":{"label":"xakep666:master","ref":"master","sha":"7ad6ccbe317ca4218d4dcec5ca4c24d4db273756","user":{"login":"xakep666","id":3612285,"avatar_url":"https://avatars3.githubusercontent.com/u/3612285?v=4","gravatar_id":"","url":"https://api.github.com/users/xakep666","html_url":"https://github.com/xakep666","followers_url":"https://api.github.com/users/xakep666/followers","following_url":"https://api.github.com/users/xakep666/following{/other_user}","gists_url":"https://api.github.com/users/xakep666/gists{/gist_id}","starred_url":"https://api.github.com/users/xakep666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xakep666/subscriptions","organizations_url":"https://api.github.com/users/xakep666/orgs","repos_url":"https://api.github.com/users/xakep666/repos","events_url":"https://api.github.com/users/xakep666/events{/privacy}","received_events_url":"https://api.github.com/users/xakep666/received_events","type":"User","site_admin":false},"repo":{"id":134541987,"name":"mpb","full_name":"xakep666/mpb","owner":{"login":"xakep666","id":3612285,"avatar_url":"https://avatars3.githubusercontent.com/u/3612285?v=4","gravatar_id":"","url":"https://api.github.com/users/xakep666","html_url":"https://github.com/xakep666","followers_url":"https://api.github.com/users/xakep666/followers","following_url":"https://api.github.com/users/xakep666/following{/other_user}","gists_url":"https://api.github.com/users/xakep666/gists{/gist_id}","starred_url":"https://api.github.com/users/xakep666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xakep666/subscriptions","organizations_url":"https://api.github.com/users/xakep666/orgs","repos_url":"https://api.github.com/users/xakep666/repos","events_url":"https://api.github.com/users/xakep666/events{/privacy}","received_events_url":"https://api.github.com/users/xakep666/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xakep666/mpb","description":"multi progress bar written in Go","fork":true,"url":"https://api.github.com/repos/xakep666/mpb","forks_url":"https://api.github.com/repos/xakep666/mpb/forks","keys_url":"https://api.github.com/repos/xakep666/mpb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xakep666/mpb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xakep666/mpb/teams","hooks_url":"https://api.github.com/repos/xakep666/mpb/hooks","issue_events_url":"https://api.github.com/repos/xakep666/mpb/issues/events{/number}","events_url":"https://api.github.com/repos/xakep666/mpb/events","assignees_url":"https://api.github.com/repos/xakep666/mpb/assignees{/user}","branches_url":"https://api.github.com/repos/xakep666/mpb/branches{/branch}","tags_url":"https://api.github.com/repos/xakep666/mpb/tags","blobs_url":"https://api.github.com/repos/xakep666/mpb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xakep666/mpb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xakep666/mpb/git/refs{/sha}","trees_url":"https://api.github.com/repos/xakep666/mpb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xakep666/mpb/statuses/{sha}","languages_url":"https://api.github.com/repos/xakep666/mpb/languages","stargazers_url":"https://api.github.com/repos/xakep666/mpb/stargazers","contributors_url":"https://api.github.com/repos/xakep666/mpb/contributors","subscribers_url":"https://api.github.com/repos/xakep666/mpb/subscribers","subscription_url":"https://api.github.com/repos/xakep666/mpb/subscription","commits_url":"https://api.github.com/repos/xakep666/mpb/commits{/sha}","git_commits_url":"https://api.github.com/repos/xakep666/mpb/git/commits{/sha}","comments_url":"https://api.github.com/repos/xakep666/mpb/comments{/number}","issue_comment_url":"https://api.github.com/repos/xakep666/mpb/issues/comments{/number}","contents_url":"https://api.github.com/repos/xakep666/mpb/contents/{+path}","compare_url":"https://api.github.com/repos/xakep666/mpb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xakep666/mpb/merges","archive_url":"https://api.github.com/repos/xakep666/mpb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xakep666/mpb/downloads","issues_url":"https://api.github.com/repos/xakep666/mpb/issues{/number}","pulls_url":"https://api.github.com/repos/xakep666/mpb/pulls{/number}","milestones_url":"https://api.github.com/repos/xakep666/mpb/milestones{/number}","notifications_url":"https://api.github.com/repos/xakep666/mpb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xakep666/mpb/labels{/name}","releases_url":"https://api.github.com/repos/xakep666/mpb/releases{/id}","deployments_url":"https://api.github.com/repos/xakep666/mpb/deployments","created_at":"2018-05-23T08:59:59Z","updated_at":"2018-05-29T07:49:47Z","pushed_at":"2018-05-29T07:49:45Z","git_url":"git://github.com/xakep666/mpb.git","ssh_url":"git@github.com:xakep666/mpb.git","clone_url":"https://github.com/xakep666/mpb.git","svn_url":"https://github.com/xakep666/mpb","homepage":null,"size":5702,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vbauerster:master","ref":"master","sha":"25897e112112b29a17682c233635ff9383f288a0","user":{"login":"vbauerster","id":2206533,"avatar_url":"https://avatars1.githubusercontent.com/u/2206533?v=4","gravatar_id":"","url":"https://api.github.com/users/vbauerster","html_url":"https://github.com/vbauerster","followers_url":"https://api.github.com/users/vbauerster/followers","following_url":"https://api.github.com/users/vbauerster/following{/other_user}","gists_url":"https://api.github.com/users/vbauerster/gists{/gist_id}","starred_url":"https://api.github.com/users/vbauerster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbauerster/subscriptions","organizations_url":"https://api.github.com/users/vbauerster/orgs","repos_url":"https://api.github.com/users/vbauerster/repos","events_url":"https://api.github.com/users/vbauerster/events{/privacy}","received_events_url":"https://api.github.com/users/vbauerster/received_events","type":"User","site_admin":false},"repo":{"id":76455463,"name":"mpb","full_name":"vbauerster/mpb","owner":{"login":"vbauerster","id":2206533,"avatar_url":"https://avatars1.githubusercontent.com/u/2206533?v=4","gravatar_id":"","url":"https://api.github.com/users/vbauerster","html_url":"https://github.com/vbauerster","followers_url":"https://api.github.com/users/vbauerster/followers","following_url":"https://api.github.com/users/vbauerster/following{/other_user}","gists_url":"https://api.github.com/users/vbauerster/gists{/gist_id}","starred_url":"https://api.github.com/users/vbauerster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbauerster/subscriptions","organizations_url":"https://api.github.com/users/vbauerster/orgs","repos_url":"https://api.github.com/users/vbauerster/repos","events_url":"https://api.github.com/users/vbauerster/events{/privacy}","received_events_url":"https://api.github.com/users/vbauerster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vbauerster/mpb","description":"multi progress bar written in Go","fork":false,"url":"https://api.github.com/repos/vbauerster/mpb","forks_url":"https://api.github.com/repos/vbauerster/mpb/forks","keys_url":"https://api.github.com/repos/vbauerster/mpb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vbauerster/mpb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vbauerster/mpb/teams","hooks_url":"https://api.github.com/repos/vbauerster/mpb/hooks","issue_events_url":"https://api.github.com/repos/vbauerster/mpb/issues/events{/number}","events_url":"https://api.github.com/repos/vbauerster/mpb/events","assignees_url":"https://api.github.com/repos/vbauerster/mpb/assignees{/user}","branches_url":"https://api.github.com/repos/vbauerster/mpb/branches{/branch}","tags_url":"https://api.github.com/repos/vbauerster/mpb/tags","blobs_url":"https://api.github.com/repos/vbauerster/mpb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vbauerster/mpb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vbauerster/mpb/git/refs{/sha}","trees_url":"https://api.github.com/repos/vbauerster/mpb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vbauerster/mpb/statuses/{sha}","languages_url":"https://api.github.com/repos/vbauerster/mpb/languages","stargazers_url":"https://api.github.com/repos/vbauerster/mpb/stargazers","contributors_url":"https://api.github.com/repos/vbauerster/mpb/contributors","subscribers_url":"https://api.github.com/repos/vbauerster/mpb/subscribers","subscription_url":"https://api.github.com/repos/vbauerster/mpb/subscription","commits_url":"https://api.github.com/repos/vbauerster/mpb/commits{/sha}","git_commits_url":"https://api.github.com/repos/vbauerster/mpb/git/commits{/sha}","comments_url":"https://api.github.com/repos/vbauerster/mpb/comments{/number}","issue_comment_url":"https://api.github.com/repos/vbauerster/mpb/issues/comments{/number}","contents_url":"https://api.github.com/repos/vbauerster/mpb/contents/{+path}","compare_url":"https://api.github.com/repos/vbauerster/mpb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vbauerster/mpb/merges","archive_url":"https://api.github.com/repos/vbauerster/mpb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vbauerster/mpb/downloads","issues_url":"https://api.github.com/repos/vbauerster/mpb/issues{/number}","pulls_url":"https://api.github.com/repos/vbauerster/mpb/pulls{/number}","milestones_url":"https://api.github.com/repos/vbauerster/mpb/milestones{/number}","notifications_url":"https://api.github.com/repos/vbauerster/mpb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vbauerster/mpb/labels{/name}","releases_url":"https://api.github.com/repos/vbauerster/mpb/releases{/id}","deployments_url":"https://api.github.com/repos/vbauerster/mpb/deployments","created_at":"2016-12-14T11:56:29Z","updated_at":"2018-05-27T20:36:18Z","pushed_at":"2018-05-29T07:49:47Z","git_url":"git://github.com/vbauerster/mpb.git","ssh_url":"git@github.com:vbauerster/mpb.git","clone_url":"https://github.com/vbauerster/mpb.git","svn_url":"https://github.com/vbauerster/mpb","homepage":null,"size":5698,"stargazers_count":221,"watchers_count":221,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":24,"open_issues":2,"watchers":221,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vbauerster/mpb/pulls/23"},"html":{"href":"https://github.com/vbauerster/mpb/pull/23"},"issue":{"href":"https://api.github.com/repos/vbauerster/mpb/issues/23"},"comments":{"href":"https://api.github.com/repos/vbauerster/mpb/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/vbauerster/mpb/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/vbauerster/mpb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vbauerster/mpb/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/vbauerster/mpb/statuses/7ad6ccbe317ca4218d4dcec5ca4c24d4db273756"}},"author_association":"NONE"}}
{"actor":{"display_login":"vbauerster"}}