Jakob, thanks for your suggestion - it lifted me out of the too narrow
context :-)
The reason seems to be that src is already corrupt when arriving at f()
because of a data race (between go routines GR1, GR2 below), copying a
slice during (non-atomic) assignment.
The null pointer is probably pl
This is an unfortunate side effect of using ... (a variadic) in append.
Zero is a valid number of arguments to pass to it.
However, I think this is a 100% valid thing to put into go vet. There's
never a time when someone writes this code on purpose instead of just
writing buf = byteArray.
Hello,
The following compiles as well as evades scrutiny by go Vet (and many a
human reviewer) resulting in perplexing bugs. What purpose calling append()
with only one argument serves? Shouldn't it be banned?
```
var byteArray= []byte{'A', 'B',}
func main() {
buf:=[]byte {'C'}
buf = append(b
Got it.
https://play.golang.org/p/3DwQuXHWlJ
On Tuesday, August 15, 2017 at 10:02:58 PM UTC-4, Tong Sun wrote:
>
> HI,
>
> I'm trying to create a data structure in Go that maps into a slice.
>
> In the following code, I'm trying to assign different people
> into different age groups.
> E.g., f
HI,
I'm trying to create a data structure in Go that maps into a slice.
In the following code, I'm trying to assign different people into different
age groups.
E.g., for age group of 65, there are people "ABC", and "XYZ".
https://play.golang.org/p/Mlfab5WsfO
However, I can't make it working.
Since I didn't receive a reply here, I did cross post to SO and
received a satisfying answer:
https://stackoverflow.com/a/45686610/4534
Many thanks,
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receivin
As a curiosity, is an ordered map really a hashtable or is it a different
kind of self-organizing search structure? I would look to LLRB trees if
order is an issue... (do a Google search for "Sedgewick LLRB") or start
here:
https://www.cs.princeton.edu/~rs/talks/LLRB/RedBlack.pdf
On Tue, Aug 15,
Sorry if this topic has been discussed, but I'm looking for a Go ordered
map implementation.
I've found
- https://github.com/samdolan/go-ordered-map
- https://github.com/emperorcow/orderedmap
etc
But none seems to be being maintained.
Anyone has used or can recommend a good Go ordered map
Hi everyone!
I'm hiring a Sr Full Stack Developer to join the RADAR (www.radarfirst.com)
engineering team in downtown Portland. This is a senior/lead level role on
an awesome, close-knit team that I've been fortunate to have worked with as
a recruiter for several years, with strong leadershi
As I scan reports of vulnerable software, I'm concerned that it is
impossible to tell, from a Go binary, what was used to build that binary.
Which means that if I depend on some library that is discovered to have a
vulnerability, I cannot look at each of the binaries I have deployed, and
discov
Coming from Python, I was told to use study Twisted Matrix code 7 years. I
haven't regretted it. Take a look at it
yourself, http://twistedmatrix.com/documents/16.1.0/core/howto/trial.html .
Now, as I learn golang, are there any worth while projects I can use as
reference for writing high qua
Even better: my libraries expose only the LogFunc: i.e.
var Log = func(keyvals ...interface{}) error { return nil}
Which is easy to override with any logger, is not tied to go-kit/log, but
provides structured logging!
--
You received this message because you are subscribed to the Google Groups
Hi,
Am 15.08.17 um 08:31 schrieb patrickjtray...@gmail.com:
> I simply want the XML files my program outputs to not have newline
> characters escaped into
. My input XML files contain newlines and I
> want to preserve them.
The
is the XML entity for LF. This is correct XML which contains
exact
On Tue, Aug 15, 2017 at 11:12 AM, wrote:
> I'm not interested in the job but just wanted to say this is one of the
> best job postings I've ever read.
>
>
Same here! If my current job wasn't so great you would already have heard
from me.
--
You received this message because you are subscribed t
Thanks for your thoughtful response. I agree with many of your points,
especially the benefits of structured logging, both on the usefulness of
the logs and the flow of the code as it builds the logging context. I have
a few comments on some of your points:
> Of these, I lean towards the zap st
Thanks! I get a lot of the same questions, so I figure it's best to just
put it all out there, and besides, if it gets just a few more people to
respond, it's worth it. :)
On Tuesday, August 15, 2017 at 11:13:22 AM UTC-4, Martin Ostrovsky wrote:
>
> I'm not interested in the job but just wanted
I've only had problems when I forgot to ask for android.permission.INTERNET
whic I assume you have. Can you post a more complete program that
demonstrates the problem?
- elias
On Tuesday, August 15, 2017 at 5:58:21 PM UTC+2, Dan Ballard wrote:
>
> StrictMode.ThreadPolicy policy = new StrictMod
Have you run this code by the race detector?
On 15 Aug 2017, at 17:01, bjorn.karge via golang-nuts
wrote:
>
> Hello!
>
> I got this panic trace which I am trying to get my head around:
>
> panic: runtime error: invalid memory address or nil pointer dereference
> [signal SIGSEGV: segmentatio
Hello!
I got this panic trace which I am trying to get my head around:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x45c3d2]
message=‘’ •••
goroutine 6786902223 [running]:
panic(0xc03040, 0x116d2f0)
On 8/15/17 7:14 AM, Chris Hines wrote:
I would be curious what you think of github.com/go-kit/kit/log (and
related "sub"-packages). See my talk about it's design here:
Video: https://youtu.be/ojhFQNgyZO4?list=FLcxNiie7-UD8znndwDn7PFw
Slides: https://speakerdeck.com/chrishines/go-kit-log-package
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().
permitAll().build();
StrictMode.setThreadPolicy(policy);
Socket socket = new Socket("127.0.0.1", 5051);
Works, no error. When I then:
GoRicochetMobile.echoBot(privateKey);
I get:
08-15 08:24:27.441 26959-26959/? I/GoLog: er
I'm not interested in the job but just wanted to say this is one of the
best job postings I've ever read.
On Tuesday, August 15, 2017 at 10:54:22 AM UTC-4, Nate Finch wrote:
>
> Mattel (yes the toy company) is hiring full time Go devs to work on its
> IoT & identity server platform. Remote is O
Mattel (yes the toy company) is hiring full time Go devs to work on its IoT
& identity server platform. Remote is OK if you're within the US. Both I
and my manager (who would be your manager) are remote. I'm in
Massachusetts, manager is in Ohio. Another dev in SF. Office is in San
Francisc
I would be curious what you think of github.com/go-kit/kit/log (and related
"sub"-packages). See my talk about it's design here:
Video: https://youtu.be/ojhFQNgyZO4?list=FLcxNiie7-UD8znndwDn7PFw
Slides: https://speakerdeck.com/chrishines/go-kit-log-package
Chris
On Monday, August 14, 2017 at 2:
Hi all!
I simply want the XML files my program outputs to not have newline
characters escaped into
. My input XML files contain newlines and I
want to preserve them.
This snippet shows my issue / inconsistency:
https://play.golang.org/p/etosjWbkLn
I've researched and found that encoding/xml'
The key point in Go is rather simple:
Since goroutines clean up for themselves, and since goroutines are not
isolated from each other, memory-wise, you need an explicit cancellation
system. And programmers must abide by its rule for the correct operation of
the program.
Programs communicate over
Thanks again, I think the memory would not be too much, it seems that I can
only leave it there, no better ways.
在 2017年8月15日星期二 UTC+8下午5:18:04,Tamás Gulácsi写道:
>
> How much memory would be on hold?
> If you know when it's safe to free the C-used memory, then do it right
> then, but if not and t
How much memory would be on hold?
If you know when it's safe to free the C-used memory, then do it right then,
but if not and that memiry is not much and won't aggregate too much, then you
can leave it there.
--
You received this message because you are subscribed to the Google Groups
"golang-
AFAIK, size_t is unsigned in C, ssize_t is signed.
On Tue, Aug 15, 2017, 04:31 Dan Kortschak
wrote:
> Well that's odd. That works for me too (after having changes the
> typedef to an import of stddef.h).
>
> It shouldn't be a uintptr (or even a uint64, it should be an int - for
> reasons that ar
29 matches
Mail list logo