payload: {"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/30264","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/30264/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/30264/comments","events_url":"https://api.github.com/repos/golang/go/issues/30264/events","html_url":"https://github.com/golang/go/issues/30264","id":410946863,"node_id":"MDU6SXNzdWU0MTA5NDY4NjM=","number":30264,"title":"proposal: net: implement fmt.Formatter on net.IP to expand IPv6 addresses","user":{"login":"nemith","id":349360,"node_id":"MDQ6VXNlcjM0OTM2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/349360?v=4","gravatar_id":"","url":"https://api.github.com/users/nemith","html_url":"https://github.com/nemith","followers_url":"https://api.github.com/users/nemith/followers","following_url":"https://api.github.com/users/nemith/following{/other_user}","gists_url":"https://api.github.com/users/nemith/gists{/gist_id}","starred_url":"https://api.github.com/users/nemith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemith/subscriptions","organizations_url":"https://api.github.com/users/nemith/orgs","repos_url":"https://api.github.com/users/nemith/repos","events_url":"https://api.github.com/users/nemith/events{/privacy}","received_events_url":"https://api.github.com/users/nemith/received_events","type":"User","site_admin":false},"labels":[{"id":236419512,"node_id":"MDU6TGFiZWwyMzY0MTk1MTI=","url":"https://api.github.com/repos/golang/go/labels/Proposal","name":"Proposal","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/30","html_url":"https://github.com/golang/go/milestone/30","labels_url":"https://api.github.com/repos/golang/go/milestones/30/labels","id":1373555,"node_id":"MDk6TWlsZXN0b25lMTM3MzU1NQ==","number":30,"title":"Proposal","description":"Proposals that are pending (not yet accepted/rejected).\r\n","creator":{"login":"rsc","id":104030,"node_id":"MDQ6VXNlcjEwNDAzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":253,"closed_issues":784,"state":"open","created_at":"2015-10-24T01:40:49Z","updated_at":"2019-02-28T00:14:42Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2019-02-15T21:14:34Z","updated_at":"2019-02-28T01:32:31Z","closed_at":"2019-02-27T18:44:51Z","author_association":"CONTRIBUTOR","body":"net.IP types implement a fmt.Stringer interface which will output the human representation for IPv4 or IPv6 addresses.  In particular the IPv6 address follows RFC5952 which will compress/shorten IPv6 addresses as much as possible.\r\n\r\nHowever this isn't always the desired output for an IPv6 address.  Sometimes you want a fully expanded IPv6 address for comparability with other systems/languages.\r\n\r\nThis proposal is to add fmt.Formatter implementation to the IPv6 address so that when the IP address is formatted with the `v` verb with a `+` flag that the expanded IPv6 address is outputted instead of the compressed version.\r\n\r\nExamples:\r\n```\r\nip := net.ParseIP(\"2001:db8::1\")\r\nfmt.Printf(\"%s\", ip)  // prints \"2001:db8::1\"\r\nfmt.Printf(\"%v\", ip)  // prints \"2001:db8::1\" (same as %s)\r\nfmt.Printf(\"%+v\", ip)  // prints \"2001:0db8:0000:0000:0000:0000:0000:0001\"\r\n```\r\nFor IPv4 `%s`, `%v`, `%+v` will all be the same."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/468100062","html_url":"https://github.com/golang/go/issues/30264#issuecomment-468100062","issue_url":"https://api.github.com/repos/golang/go/issues/30264","id":468100062,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2ODEwMDA2Mg==","user":{"login":"mikioh","id":92117,"node_id":"MDQ6VXNlcjkyMTE3","avatar_url":"https://avatars1.githubusercontent.com/u/92117?v=4","gravatar_id":"","url":"https://api.github.com/users/mikioh","html_url":"https://github.com/mikioh","followers_url":"https://api.github.com/users/mikioh/followers","following_url":"https://api.github.com/users/mikioh/following{/other_user}","gists_url":"https://api.github.com/users/mikioh/gists{/gist_id}","starred_url":"https://api.github.com/users/mikioh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikioh/subscriptions","organizations_url":"https://api.github.com/users/mikioh/orgs","repos_url":"https://api.github.com/users/mikioh/repos","events_url":"https://api.github.com/users/mikioh/events{/privacy}","received_events_url":"https://api.github.com/users/mikioh/received_events","type":"User","site_admin":false},"created_at":"2019-02-28T01:32:31Z","updated_at":"2019-02-28T01:32:31Z","author_association":"CONTRIBUTOR","body":"> net can't import fmt, sorry\r\n\r\nYup, even though the package context imports \"fmt\" and the package net depends on the package context.\r\n\r\n> Also formatter can't do '%ip', because fmt stops parsing\r\n\r\nYup, the type of the format verb in the package fmt is int and we cannot change it; so my suggestion above is also a message for someone who wants to implement own printer implementation for net.IP (like golang.org/x/text/message) in an external package. "}}
other: {"actor":{"display_login":"mikioh"}}