Hi,
I'm using the ReverseProxy from the httputil package and cannot figure out
how the director can communicate to the reverse proxy that the director
failed to rebuild the request. The result, as I see it, should become an
HTTP 500/502 error being returned to the caller and the request not pro
nsdag 23 januari 2019 kl. 08:29:41 UTC+1 skrev Patrik Iselind:
>
>
> Den tisdag 22 januari 2019 kl. 22:14:20 UTC+1 skrev Ian Lance Taylor:
>>
>> On Tue, Jan 22, 2019 at 11:21 AM Patrik Iselind
>> wrote:
>> >
>> > I'm looking at memory profile
Den tisdag 22 januari 2019 kl. 22:14:20 UTC+1 skrev Ian Lance Taylor:
>
> On Tue, Jan 22, 2019 at 11:21 AM Patrik Iselind > wrote:
> >
> > I'm looking at memory profiles and have a hard time interpreting what I
> see. I'm trying to better understand what I a
Hi,
I'm looking at memory profiles and have a hard time interpreting what I
see. I'm trying to better understand what I am looking at in `go tools
pprof` why looking at the raw data. All 'groups' at the end of output from
/debug/pprof/heap have lines that begin with "0: 0 [0: 0] @0x...". It
the original and the copy
> concurrently, since go copy is shallow.
>
> Hope this helps.
>
> On Tuesday, October 2, 2018 at 1:49:58 AM UTC-4, Patrik Iselind wrote:
>>
>> Hi,
>>
>> I came up with a question i cannot answer. Hopefully you guys can clarify
>&g
Hi,
I came up with a question i cannot answer. Hopefully you guys can clarify
things for me.
If i've made a HTTP request and i get the response. I don't touch the body
or anything at this point. Would that response be safe to transport in a
channel? Having the other end process the response.
Hi guys,
I'm after a way to visualize all types in my project spanning multiple
packages. This includes both which types are composed of which other types
and which functions are attached to the different types. Something similar
to UML class diagrams.
Is there such a tool already or do i have
Is there such a tool that can go through a GoLang code base and suggest
values that might be a good idea to convert into constants?
If a value (for example an int or a string, but excluding values that are
already constants) is hard coded at least X times in the code base, could
be a candidate
Den 2018-02-14 kl. 11:42, skrev Axel Wagner:
Why are the things mentioned so far not sufficient?
The presented reasons are enough. I was just seeing things the wrong way
and it took quite a while to get my head on straight. After some
consideration i have repaired my views and everything is
What can go wrong if i try to use ioutil.ReadAll() on a HTTP response?
Isn't that very hard to fake?
--
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 email
to golang-nuts+
Hi,
I have a hard time imagining when https://golang.org/pkg/io/ioutil/#ReadAll
would produce err != nil. The documentation doesn't tell either. It would
help when writing unittests for code that use ioutil.ReadAll().
// Patrik
--
You received this message because you are subscribed to the Go
Den fredag 2 februari 2018 kl. 11:50:43 UTC+1 skrev Jesper Louis Andersen:
>
> A simple solution is to have a channel of type struct{} of some bound, say
> 10. A process only gives service as long as it can pull a message from the
> channel.
>
How would i hook in such a channel in the http serv
Den fredag 2 februari 2018 kl. 11:50:22 UTC+1 skrev Henrik Johansson:
>
> I guess a middleware wrapping any of the available rate limiters
> https://godoc.org/?q=rate+limit should do the trick?
>
Thanks a lot for your suggestion.
How do i add middleware to the HTTP server in the first place? I
Hi,
If i define a webserver as such (taken from the docs)
http.Handle("/foo", fooHandler)
http.HandleFunc("/bar", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
})
log.Fatal(http.ListenAndServe(":8080", nil))
How do i control
Hi guys,
Is there a way to get `go install` to error out if there is unused
functions in the code base? This should of course only apply if package ==
main and the functions doesn't come from a library. This could reduce the
amount of code that i have to maintain as a code block owner.
The rea
15 matches
Mail list logo