[go-nuts] Re: time.Now takes ~3758 ns/op, is that normal?

2018-05-24 Thread lafolle
list time.now Total: 1.55s ROUTINE playground/bench-time-now.BenchmarkTimeNow in /home/lafolle/src/playground/bench-time-now/main_test.go 40ms 380ms (flat, cum) 24.52% of Total . . 5: "testing" . .

Re: [go-nuts] golang maps; using slice as a key

2018-05-23 Thread lafolle
Thanks Mathias for clearing this out. I reasoned this out by looking at the address to which `i` was allocated to, though I wanted to _peek_ inside the slice's header to be affirmative. But I can't clearly understand how to use unsafe pointer. Thanks for showing how to use it. One thing I don'