Re: [go-nuts] Preserving special characters when reading Go POST request body

2024-07-01 Thread Ian Lance Taylor
On Mon, Jul 1, 2024 at 12:04 PM Hugh Myrie wrote: > > I am trying to preserve special characters (group separators and field > separators) when reading the request body from a POST request. > > When I do a dumpRequest I am able to see the special characters (Hex Format, > for example: \x1c or

[go-nuts] Re: Advancing the container/set design?

2024-07-01 Thread twp...@gmail.com
+1 on this. At the moment, every module that needs a set implementation ends up creating its own, either using map[T]struct{} or map[T]bool. Having a set implementation in the standard library would significantly increase operability between modules, even if the implementation is trivial.

[go-nuts] Preserving special characters when reading Go POST request body

2024-07-01 Thread Hugh Myrie
I am trying to preserve special characters (group separators and field separators) when reading the request body from a POST request. When I do a dumpRequest I am able to see the special characters (Hex Format, for example: \x1c or \x03). I am sending the data from the client as text/plain. I

[go-nuts] Advancing the container/set design?

2024-07-01 Thread Frederik Zipp
Some time ago, Ian started a discussion about a potential proposal for a container/set package: https://github.com/golang/go/discussions/47331 The main point of uncertainty was iterating over elements. Now that iteration is solved in Go 1.23, is it perhaps time to advance this design and turn

Re: [go-nuts] is stop the world and restart the world overhead expensive?

2024-07-01 Thread Ian Lance Taylor
On Mon, Jul 1, 2024 at 5:45 AM 杨杰 wrote: > > i implement an goroutine profile which use frame pointer to get traceback. > > it need stop and restart the world with 100hz. > > is this operation expensive? Yes. Since the concern is profiling, I'll note that it will also significantly affect the

[go-nuts] Should the phrasing about method sets in Go FAQ be slightly clarified?

2024-07-01 Thread Timur Sharapov
https://go.dev/doc/faq#different_method_sets I am referring to this paragraph that in my opinion answers one of the trickiest questions for new Go developers. *Even in cases where the compiler could take the address of a value to pass to the method, if the method modifies the value the

[go-nuts] is stop the world and restart the world overhead expensive?

2024-07-01 Thread 杨杰
i implement an goroutine profile which use frame pointer to get traceback. it need stop and restart the world with 100hz. is this operation expensive? see https://github.com/felixge/fgprof/issues/31 -- You received this message because you are subscribed to the Google Groups "golang-nuts"