Re: [go-nuts] go package dating back to 2009

2023-07-26 Thread 'Jim Idle' via golang-nuts
Decred is a project that was originally put together by someone who never claimed the moniker used by the originator. I suggest that 'Bravo Moua' is trying to claim authorship. HOwever, it is clear that I am Spartacus. https://thedecreddigest.wordpress.com/2017/06/10/decred-where-did-it-all-begi

[go-nuts] [go test] pure Test Classes.

2023-07-26 Thread sumith s
Currently, we do not have pure Test Classes defined by us. We are using Golang specific Test Class structure. Each FILENAME_test.go will have its own test class under "Golang Test". I'm trying to define a pure Test Classes. how can do that? -- You received this message because you are subscrib

Re: [go-nuts] [go test] pure Test Classes.

2023-07-26 Thread Jan Mercl
On Wed, Jul 26, 2023 at 9:44 AM sumith s wrote: > Currently, we do not have pure Test Classes defined by us. We are using > Golang specific Test Class structure. Each FILENAME_test.go will have its own > test class under "Golang Test". > I'm trying to define a pure Test Classes. how can do tha

Re: [go-nuts] Re: [windows] c:= exec.CommandContext(ctx, ...) + c.Output() don't return when process is killed upon context expiration until child termination

2023-07-26 Thread 'Bryan C. Mills' via golang-nuts
On Friday, February 4, 2022 at 6:23:45 PM UTC-5 Pablo Caballero wrote: Hi Ian! Thank you so much for sharing that link with me. It was very enriching to read it. As I commented in my first message, the fact that the problem did not occur on Mac got me a bit confused at first. macOS does not h

[go-nuts] unsafe.Pointer conversions

2023-07-26 Thread Nigel van Keulen
Since unsafe.Pointer can convert between types that have the same underlying type, can unsafe.Pointer also convert between function types who's arguments & return values have the same underlying type? The code I would like to use this technique on: ``` type JSExtFunc func(this Value, args Args)

Re: [go-nuts] map type conversion

2023-07-26 Thread Nigel van Keulen
Maybe my question could be of interest in this topic. I am not sure, and haven't tested if it works with maps, and I am also not sure if it is supposed to work / will work consistently. https://groups.google.com/g/golang-nuts/c/0RqzD2jNADE/m/3Hf14DllBAAJ?utm_medium=email&utm_source=footer Op din

[go-nuts] Is there a pure Go packet capture and analysis tool?

2023-07-26 Thread Aurora
I'm looking for a pure Go method to capture live TCP traffic. I've tried using gopacket. It works fine, but it's using C behind the scenes and that makes it not suitable for my situation. Is there any way to this in pure Go? -- You received this message because you are subscribed to the Google

Re: [go-nuts] Is there a pure Go packet capture and analysis tool?

2023-07-26 Thread Eli Lindsey
gopacket’s C bindings are for different ways of initially capturing the packets (libpcap, pfring, and so on). I would recommend seeing if you can create a pure Go PacketDataSource for the platform and API that you care about and reuse the rest of gopacket’s layered decoding support. gopacket doe

[go-nuts] Re: unsafe.Pointer conversions

2023-07-26 Thread 'Keith Randall' via golang-nuts
On Wednesday, July 26, 2023 at 9:56:54 AM UTC-7 Nigel van Keulen wrote: Since unsafe.Pointer can convert between types that have the same underlying type, can unsafe.Pointer also convert between function types who's arguments & return values have the same underlying type? The code I would lik