Re: [go-nuts] Re: [64]byte()[:]

2019-11-16 Thread Marcin Romaszewicz
It's not even worth calling bytes.Equal to see if a bunch of bytes is zero. A more efficient way would be to simply loop over them and check for non-zero. -- Marcin On Sat, Nov 16, 2019 at 4:00 PM Kevin Malachowski wrote: > "make"ing a byre slice every time you call Equal is not likely as > eff

[go-nuts] Re: [64]byte()[:]

2019-11-16 Thread Kevin Malachowski
"make"ing a byre slice every time you call Equal is not likely as efficient; surely it will put pressure on the garbage collector, assuming it's not just called a few times. Writing something in less lines is not strictly better. I'd probably just make package level variable and reuse it among

[go-nuts] SSLKEYLOGFILE pre-master secret log for TLS?

2019-11-16 Thread Jason E. Aten
I have wss websocket client that I need to decrypt the packets from in WireShark to establish time of delivery--to troubleshoot a slowdown. Similar to the Chrome facility for dumping the TLS pre-master secret using the env variable SSLKEYLOGFILE, which WireShark can then utilize, do the Go TLS l

[go-nuts] Problem with migration to the new "module" technology from "go"

2019-11-16 Thread Andreas Otto
Hi, I have an existing project existing of a "library" creating a wrapper to "C" using "go install" and on a different place multiple "executable's" everything glue together using the *GOPATH* technology. NOW I start using the new "module" technology. Library: 1. I create with "mod init

[go-nuts] ANN: srctrace a tool to capture source code repository details

2019-11-16 Thread R Srinivasan
friends The following is the first (of hopefully a few more to come) tools that I built for DevOps. Hoping it will be of use to the community. https://github.com/RajaSrinivasan/srctrace.git best, srini -- You received this message because you are subscribed to the Google Groups "golang-nuts"