Re: [go-nuts] Re: Measuring the total time of serving a request

2023-11-21 Thread Mitar
he Content-Length header is added automatically." "Once the headers have been flushed (...), the request body may be unavailable." My understanding is that after the main handler returns, none of this matters anymore. But are there any other similar side effects? Mitar --

Re: [go-nuts] Re: Measuring the total time of serving a request

2023-11-20 Thread Mitar
Hi! On Mon, Nov 20, 2023 at 10:26 AM Duncan Harris wrote: > Why do you care about buffering in Go vs the OS? Just because I hope that in Go I might have a chance to know when they are written out than in OS. Mitar -- https://mitar.tnode.com/ https://twitter.com/mitar_m https://noc.soc

[go-nuts] Measuring the total time of serving a request

2023-11-19 Thread Mitar
by malice) and would like to have some data on how often that is happening. Mitar -- https://mitar.tnode.com/ https://twitter.com/mitar_m https://noc.social/@mitar -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] ANN: A new package to wrap errors and record a stack trace

2022-01-03 Thread Mitar
k trace every time you called any of its methods, even when the error you were wrapping already had a stack trace. Most functions in this package add a stack trace only if the error does not already have one. The only exception is Wrap which does it again. Mitar -- http://mitar.tnode.com/ https://twit

Re: [go-nuts] ANN: A new package to wrap errors and record a stack trace

2022-01-03 Thread Mitar
you use `errors.Is` to determine which of base errors happened and map that to a message for the end user, in their language. So in a way, github.com/cockroachdb/errors has too much stuff for me, so I prefer something leaner. Mitar On Mon, Jan 3, 2022 at 7:27 AM Gaurav Maheshwari wrote: > &g

[go-nuts] ANN: A new package to wrap errors and record a stack trace

2022-01-02 Thread Mitar
codewise and very familiar human wise. Now you can use Errorf to both wrap an existing error, format the error message, and record a stack trace. https://gitlab.com/tozd/go/errors Check it out. Any feedback is welcome. Mitar -- http://mitar.tnode.com/ https://twitter.com/mitar_m -- You received

Re: [go-nuts] Is importing one main package in another main package supported?

2021-12-22 Thread Mitar
16. So I can assume the post is simply false? Mitar -- http://mitar.tnode.com/ https://twitter.com/mitar_m -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an

[go-nuts] Is importing one main package in another main package supported?

2021-12-21 Thread Mitar
are installed as CLI tools? Mitar [1] https://groups.google.com/g/golang-nuts/c/frh9zQPEjUk/m/9tnVPAegDgAJ -- http://mitar.tnode.com/ https://twitter.com/mitar_m -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou