[go-nuts] Re: understanding memory profile

2017-12-07 Thread Sangjin Lee
It is actually with the latest (1.9.2). I'll file an issue. Thanks. On Tuesday, December 5, 2017 at 1:51:07 PM UTC-8, Dave Cheney wrote: > > Can you please check if this is happening with the current version of Go > and if so raise a bug, https://golang.org/issue/new. > > Thanks > -- You

[go-nuts] Go 1.10 Beta 1 is released

2017-12-07 Thread Andrew Bonventre
Hello gophers, We have just released go1.10beta1, a beta version of Go 1.10. It is cut from the master branch at the revision tagged go1.10beta1. There are no known problems or regressions. Please try running production load tests and your unit tests with the new version. Your help testing these

[go-nuts] Re: Bcrypt isn't comparing stored password hash properly

2017-12-07 Thread matthewjuran
Are you sure for rows.Next() is returning true in router.go? Usually there is a call to rows.Error() after the iteration too. Matt On Thursday, December 7, 2017 at 11:33:53 AM UTC-6, Gabriel Simmer wrote: > > So after much looking, I've concluded it's not an issue with the database > encoding.

[go-nuts] package for concurrent os.File operations

2017-12-07 Thread Vasiliy Tolstov
I have []*os.File that need to be Write/Close/Sync/Seek concurrent with proper return values (so if one Write return error i need to catch it ad return to upper layer. In case Seek i need to check that all Seeks returns equal values without errors. Ideally that []*os.File is wrapped to interface

Re: [go-nuts] Re: Implement sub-commands using flag library

2017-12-07 Thread dc0d
Thanks again Roger. I've applied those suggestions. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options,

Re: [go-nuts] Re: Implement sub-commands using flag library

2017-12-07 Thread roger peppe
On 7 December 2017 at 17:20, dc0d wrote: > The way it is implemented currently, it supports multiple commands. And it > can be decided by checking the flags against their default values. That won't work if you don't pass any flags! > Maybe it should return a

Re: [go-nuts] Newbie cgo question

2017-12-07 Thread Ian Lance Taylor
On Thu, Dec 7, 2017 at 4:53 AM, wrote: > > I am working on a pilot go/cgo project for a database driver. For one of my > C functions called by go, I chose a generic, unfortunate name connect(). My > program kept dumping core on Linux. I did some tracing and found out that

[go-nuts] Re: Bcrypt isn't comparing stored password hash properly

2017-12-07 Thread Gabriel Simmer
So after much looking, I've concluded it's not an issue with the database encoding. What's odd is if I manually add the hash to the database it functions fine. On Tuesday, December 5, 2017 at 11:39:38 AM UTC-8, Gabriel Simmer wrote: > > Hey Gophers, > > I have a bit of a headscratcher for you

Re: [go-nuts] Re: Implement sub-commands using flag library

2017-12-07 Thread dc0d
The way it is implemented currently, it supports multiple commands. And it can be decided by checking the flags against their default values. Maybe it should return a []string. Any specific suggestions? On Thursday, December 7, 2017 at 7:13:57 PM UTC+3:30, rog wrote: > > On 7 December 2017 at

[go-nuts] Newbie cgo question

2017-12-07 Thread asaaveri
All: I am working on a pilot go/cgo project for a database driver. For one of my C functions called by go, I chose a generic, unfortunate name connect(). My program kept dumping core on Linux. I did some tracing and found out that my function connect() was being called twice even though I

[go-nuts] Re: Calculation of the combinations between an unlimited number of slices

2017-12-07 Thread Fred
Thanks @Jake Le jeudi 7 décembre 2017 01:01:46 UTC+1, Jake Montgomery a écrit : > > On Monday, December 4, 2017 at 2:56:19 PM UTC-5, Fred wrote: >> >> >> > Perhaps start with Go Slices: usage and internals > , for a more > complete