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
"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
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
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
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"