We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://golang.org/pkg/strings/#TrimPrefix
[bangert@stuart grayproxy]$ git diff . diff --git a/app.go b/app.go index cb07fd1..4edb6d9 100644 --- a/app.go +++ b/app.go @@ -90,7 +90,7 @@ func (app *app) configure() (err error) { case strings.HasPrefix(v, "http://") || strings.HasPrefix(v, "https://"): app.outs[i] = &httpSender{Address: v, SendTimeout: app.sendTimeout} default: - app.outs[i] = &tcpSender{Address: strings.TrimPrefix("tcp://", v), SendTimeout: app.sendTimeout} + app.outs[i] = &tcpSender{Address: strings.TrimPrefix(v, "tcp://"), SendTimeout: app.sendTimeout} } log.Printf("Added output %d: %s", i, v) }
The text was updated successfully, but these errors were encountered:
a069b22
Thanks!
Sorry, something went wrong.
No branches or pull requests
https://golang.org/pkg/strings/#TrimPrefix
The text was updated successfully, but these errors were encountered: