Damien Neil
Damien Neil
> To expose the Pattern field, we have to change private pattern to public Pattern, also the fields in pattern like str,method,host,segments,loc should be public, and this makes type segment...
The `go_package` option in your `.proto` file should be set to the full, non-relative import path of the Go package that will contain the generated code for that file.
Fixed in golang.org/x/net v0.2.0, will be in go1.20.
This will be in 1.20.
The [`http2.Transport`](https://pkg.go.dev/golang.org/x/net/http2#Transport) has a `WriteByteTimeout` setting which sets the maximum amount of time to wait on any given write. I could see extending that to the HTTP/2 server and the...
> This proposal won't affect the idle timeout between the requests (http.Transport.IdleConnTimeout), right? Correct. `net/http` doesn't really have any facilities for treating a connection differently based on a request received...
Can you give a concrete example of where you needed this function? `Split` was dropped from #53435 because we couldn't come up with sufficient examples for when it might be...
Thanks for the detailed explanation @lestrrat. You suggest that you'd like users to write code like this: ``` for _, child := range errors.Errors(err) { switch child := child.(type) {...
In general, if you want to provide semantically meaningful errors to users, you need to either expose sentinel values (such as `io.EOF`) or concrete error types (such as `os.PathError`) in...
> Why would Join wrap errors if there is no way in the library for unwrapping it? An error wrapped with `Join` may be unwrapped with `errors.Is` or `errors.As`. If...