{"action":"opened","issue":{"url":"https://api.github.com/repos/andviro/grayproxy/issues/1","repository_url":"https://api.github.com/repos/andviro/grayproxy","labels_url":"https://api.github.com/repos/andviro/grayproxy/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/andviro/grayproxy/issues/1/comments","events_url":"https://api.github.com/repos/andviro/grayproxy/issues/1/events","html_url":"https://github.com/andviro/grayproxy/issues/1","id":252207070,"number":1,"title":"wrong usage of strings.TrimPrefix","user":{"login":"bangert","id":73190,"avatar_url":"https://avatars0.githubusercontent.com/u/73190?v=4","gravatar_id":"","url":"https://api.github.com/users/bangert","html_url":"https://github.com/bangert","followers_url":"https://api.github.com/users/bangert/followers","following_url":"https://api.github.com/users/bangert/following{/other_user}","gists_url":"https://api.github.com/users/bangert/gists{/gist_id}","starred_url":"https://api.github.com/users/bangert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bangert/subscriptions","organizations_url":"https://api.github.com/users/bangert/orgs","repos_url":"https://api.github.com/users/bangert/repos","events_url":"https://api.github.com/users/bangert/events{/privacy}","received_events_url":"https://api.github.com/users/bangert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-23T08:50:53Z","updated_at":"2017-08-23T08:50:53Z","closed_at":null,"body":"https://golang.org/pkg/strings/#TrimPrefix\r\n\r\n```diff\r\n[bangert@stuart grayproxy]$ git diff .\r\ndiff --git a/app.go b/app.go\r\nindex cb07fd1..4edb6d9 100644\r\n--- a/app.go\r\n+++ b/app.go\r\n@@ -90,7 +90,7 @@ func (app *app) configure() (err error) {\r\n                case strings.HasPrefix(v, \"http://\") || strings.HasPrefix(v, \"https://\"):\r\n                        app.outs[i] = &httpSender{Address: v, SendTimeout: app.sendTimeout}\r\n                default:\r\n-                       app.outs[i] = &tcpSender{Address: strings.TrimPrefix(\"tcp://\", v), SendTimeout: app.sendTimeout}\r\n+                       app.outs[i] = &tcpSender{Address: strings.TrimPrefix(v, \"tcp://\"), SendTimeout: app.sendTimeout}\r\n                }\r\n                log.Printf(\"Added output %d: %s\", i, v)\r\n        }\r\n```"}}
{"actor":{"display_login":"bangert"}}