{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/10430","labels_url":"https://api.github.com/repos/golang/go/issues/10430/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/10430/comments","events_url":"https://api.github.com/repos/golang/go/issues/10430/events","html_url":"https://github.com/golang/go/issues/10430","id":67935255,"number":10430,"title":"fmt: empty byte slice prints one value with format \"% 02x\"","user":{"login":"robpike","id":4324516,"avatar_url":"https://avatars.githubusercontent.com/u/4324516?v=3","gravatar_id":"","url":"https://api.github.com/users/robpike","html_url":"https://github.com/robpike","followers_url":"https://api.github.com/users/robpike/followers","following_url":"https://api.github.com/users/robpike/following{/other_user}","gists_url":"https://api.github.com/users/robpike/gists{/gist_id}","starred_url":"https://api.github.com/users/robpike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robpike/subscriptions","organizations_url":"https://api.github.com/users/robpike/orgs","repos_url":"https://api.github.com/users/robpike/repos","events_url":"https://api.github.com/users/robpike/events{/privacy}","received_events_url":"https://api.github.com/users/robpike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"robpike","id":4324516,"avatar_url":"https://avatars.githubusercontent.com/u/4324516?v=3","gravatar_id":"","url":"https://api.github.com/users/robpike","html_url":"https://github.com/robpike","followers_url":"https://api.github.com/users/robpike/followers","following_url":"https://api.github.com/users/robpike/following{/other_user}","gists_url":"https://api.github.com/users/robpike/gists{/gist_id}","starred_url":"https://api.github.com/users/robpike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robpike/subscriptions","organizations_url":"https://api.github.com/users/robpike/orgs","repos_url":"https://api.github.com/users/robpike/repos","events_url":"https://api.github.com/users/robpike/events{/privacy}","received_events_url":"https://api.github.com/users/robpike/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-04-12T17:06:54Z","updated_at":"2015-04-13T19:34:02Z","closed_at":null,"body":"https://play.golang.org/p/S51xT7K4Au\r\n\r\npackage main\r\n\r\nimport \"fmt\"\r\n\r\nfunc main() {\r\n\tfmt.Printf(\"% 02x\\n\", []byte{0})\r\n\tfmt.Printf(\"% 02x\\n\", []byte{})\r\n}\r\n\r\n\r\nprints 00."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/92472192","html_url":"https://github.com/golang/go/issues/10430#issuecomment-92472192","issue_url":"https://api.github.com/repos/golang/go/issues/10430","id":92472192,"user":{"login":"robpike","id":4324516,"avatar_url":"https://avatars.githubusercontent.com/u/4324516?v=3","gravatar_id":"","url":"https://api.github.com/users/robpike","html_url":"https://github.com/robpike","followers_url":"https://api.github.com/users/robpike/followers","following_url":"https://api.github.com/users/robpike/following{/other_user}","gists_url":"https://api.github.com/users/robpike/gists{/gist_id}","starred_url":"https://api.github.com/users/robpike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robpike/subscriptions","organizations_url":"https://api.github.com/users/robpike/orgs","repos_url":"https://api.github.com/users/robpike/repos","events_url":"https://api.github.com/users/robpike/events{/privacy}","received_events_url":"https://api.github.com/users/robpike/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T19:34:02Z","updated_at":"2015-04-13T19:34:02Z","body":"\"For compound operands such as slices and structs, the format applies to the elements of each operand, recursively, not to the operand as a whole. Thus %q will quote each element of a slice of strings, and %6.2f will control formatting for each element of a floating-point array.\"\r\n\r\nSo for an empty slice it should print nothing. Fix coming.\r\n"}}