Re: [go-nuts] Does the CanSet and CanAddr methods of a reflect.Value always return the same result?

2018-05-12 Thread T L
On Saturday, May 12, 2018 at 11:54:13 PM UTC-4, Ian Lance Taylor wrote: > > No. > > https://play.golang.org/p/f_qy1ZI56w7 > > Ian > Got it, thanks. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop rec

Re: [go-nuts] Does the CanSet and CanAddr methods of a reflect.Value always return the same result?

2018-05-12 Thread Ian Lance Taylor
No. https://play.golang.org/p/f_qy1ZI56w7 Ian -- 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, visit

Re: [go-nuts] os/exec always fails with fork/exec /usr/bin/qemu-img: invalid argument

2018-05-12 Thread Ian Lance Taylor
On Sat, May 12, 2018 at 9:38 AM, Zhang Qiang wrote: > The -f output with more context(returning to the main thread 30617 and > waiting for another socket connection): > > [pid 30670] clock_gettime(CLOCK_REALTIME, {1526142534, 664590192}) = 0 > [pid 30670] write(2, "2018/05/13 00:28:54 cmd params c

Re: [go-nuts] Re: Go could really use a while statement

2018-05-12 Thread matthewjuran
That would be funny to me. I have been guilty of being disrespectful to people in person about their C code choices, but I thought it was justified because I was hoping to get good technical reasons in response and didn’t intend anything personally targeted. ‘Crusade’ was a word I’d use for wha

Re: [go-nuts] Please help me solve a bug with my licencing system!

2018-05-12 Thread Jesper Louis Andersen
On Sat, May 12, 2018 at 12:04 AM wrote: > How do you recommend I check errors. I dismiss them because I don't like > if err !=nil { log.error(err.error()} > being all over my project. Suggestions please, Thanks! > > Code have a positive path on which the normal operation happens. But code also ha

Re: [go-nuts] Re: Go could really use a while statement

2018-05-12 Thread Michael Jones
I bet Rob wishes he'd done that after the code reviewer's objections. On Sat, May 12, 2018 at 8:20 AM wrote: > It's certainly diverged from my original post, which is why I'm staying >> quiet. > > > I was hoping to get back on track after you sent this so you’d want to > participate. > > goto is

[go-nuts] Does the CanSet and CanAddr methods of a reflect.Value always return the same result?

2018-05-12 Thread T L
. -- 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, visit https://groups.google.com/d/optout.

Re: [go-nuts] os/exec always fails with fork/exec /usr/bin/qemu-img: invalid argument

2018-05-12 Thread Zhang Qiang
The -f output with more context(returning to the main thread 30617 and waiting for another socket connection): [pid 30670] clock_gettime(CLOCK_REALTIME, {1526142534, 664590192}) = 0 [pid 30670] write(2, "2018/05/13 00:28:54 cmd params c"..., 1492018/05/13 00:28:54 cmd params create -f qcow2 /data/

Re: [go-nuts] os/exec always fails with fork/exec /usr/bin/qemu-img: invalid argument

2018-05-12 Thread Ian Lance Taylor
On Fri, May 11, 2018 at 9:47 PM, Zhang Qiang wrote: > > Thanks for your valuable advice on debugging. > > The SysProcAttr field is nil, and I can't see why it fails from the > strace, seems it just found the executable and then fails without > doing fork: > > stat("/usr/bin/qemu-img", {st_mode=S_I

[go-nuts] Re: Go could really use a while statement

2018-05-12 Thread matthewjuran
> > It's certainly diverged from my original post, which is why I'm staying > quiet. I was hoping to get back on track after you sent this so you’d want to participate. goto is another way to do loops in Go: https://play.golang.org/p/0chmb5DeOym Matt On Wednesday, May 9, 2018 at 4:26:44 PM