[go-nuts] time.Time round/truncate not removing nanosceonds component

2018-05-13 Thread Jens Hausherr
Hi, here is something I have been puzzled for a few days now. On my OSX machine rounding/truncating of time.Time values apparently does not remove the nanoseconds component as documented when calling Truncate(0)/Round(0). On play.golang.org it works as expected: https://play.golang.org/p/NXyh

Re: [go-nuts] Digest for golang-nuts@googlegroups.com - 18 updates in 9 topics

2018-05-13 Thread Jan Mercl
On Mon, May 14, 2018 at 5:33 AM Pete Wilson wrote: > And then the quality of software will improve, because not everybody can afford a few billion Depends on how you define quality. Catch: bug-free is not a usable definition of software quality. At least while humans write and test it. -- -j

[go-nuts] golang maven plug-in 2.2.0 has been published in maven central

2018-05-13 Thread Igor Maznitsa
Hello All the 2.2.0 version of the maven golang plugin has been published in the maven central the main new feature - now the work with dependencies is much easier and they can be defined through external file (example

Re: [go-nuts] ROC (Request-Oriented Collector)

2018-05-13 Thread Ian Lance Taylor
[ +rlh, austin] On Sun, May 13, 2018 at 11:24 AM, Tanya Borisova wrote: > Hi! > > Is Golang team still working on Request-Oriented Collector? Is there any > update on it? Quick search in golang-nuts and golang-dev didn't yield any > new updates. > > If not, it would be very interesting to hear wh

Re: [go-nuts] Go license and fitness for purpose

2018-05-13 Thread Ian Lance Taylor
On Sun, May 13, 2018 at 1:01 PM, wrote: >> Why would you assume more liability than necessary? > > > My thought is the authors want to gain serious users to increase feedback > quality and improve the developer market. I thought this was why Google let > Go be open source besides attracting acade

Re: [go-nuts] Digest for golang-nuts@googlegroups.com - 18 updates in 9 topics

2018-05-13 Thread Pete Wilson
All this is true. But I expect that one of these fine days, someone sueable is going to ship software with a serious bug, and are going to get sued and lose because (i) there’s a lot of money and (ii) it’s well known in the art that doing X is just bloody stupid, and you did X. And then the qua

[go-nuts] ROC (Request-Oriented Collector)

2018-05-13 Thread Tanya Borisova
Hi! Is Golang team still working on Request-Oriented Collector? Is there any update on it? Quick search in golang-nuts and golang-dev didn't yield any new updates. If not, it would be very interesting to hear why not and what Golang GC team is working on next. Thanks, Tanya -- You received

[go-nuts] Why does unmarshalling this API response return an unexpected EOF?

2018-05-13 Thread ivanchenko . luke
Hi all, I'm creating a microservice in Go, using protocol buffers and gRPC. It interacts with a third-party API (Snooth) and I'm trying to unmarshal the JSON response into a protobuf struct I've created, using the proto package. Unmarshalling returns an unexpected EOF error. I've summed up th

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

2018-05-13 Thread Zhang Qiang
Hi Matthias, Ian was right, the reason was the NUL bytes in the parameters. The parameters were from a socket with extra NUL bytes and I forgot to trim them. Thanks for your advice anyway (: On 14 May 2018 at 01:27, Matthias B. wrote: > On Fri, 11 May 2018 20:36:18 -0700 (PDT) > Tashi Lu wrote

Re: [go-nuts] Go license and fitness for purpose

2018-05-13 Thread Dan Kortschak
Who would determine whether an mistaken action was intentional? This seems like a very dangerous inclusion. On Sun, 2018-05-13 at 08:56 -0700, matthewju...@gmail.com wrote: > THE AUTHORS OF THIS SOFTWARE DID NOT INTENTIONALLY MAKE MISTAKES OR > INCLUDE  > PRACTICAL JOKES. > > I’m not a lawyer, bu

Re: [go-nuts] Go license and fitness for purpose

2018-05-13 Thread David Anderson
I would point out that a complete disclaimer of liability is fairly common even in commercial relationships. Just now I downloaded my motherboard's manual, and had to click through a liability and fitness-for-purpose disclaimer. So, even someone selling you a $300 enterprise motherboard doesn't wan

Re: [go-nuts] Go license and fitness for purpose

2018-05-13 Thread Gerald Henriksen
On Sun, 13 May 2018 13:01:46 -0700 (PDT), you wrote: >I don't think this is the attitude behind GCC, or maybe it is. I want to >write programs that do things worth money and hope to use Go or GCC to do >so (including working with and on those projects for free), but if they >might include unnec

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

2018-05-13 Thread Juliusz Chroboczek
>> https://play.golang.org/p/f_qy1ZI56w7 > Got it, thanks. It took me a while. I think the point Ian is making is that an unexported field is not CanSet. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] [ANN] Dependencies for dummies

2018-05-13 Thread Gerardo Oscar JT
Hi gophers! Golang do not have a canonical way to download dependencies. Glide is the last one I have been using and it is like a drunk elephant in my laptop. This weekend I have managed to summon the force to work on a silly script that read a list of git repos, and do the clones, one by one.

Re: [go-nuts] Go license and fitness for purpose

2018-05-13 Thread matthewjuran
> > Why would you assume more liability than necessary? My thought is the authors want to gain serious users to increase feedback quality and improve the developer market. I thought this was why Google let Go be open source besides attracting academic uses. And as an open source developer who

[go-nuts] Re: I don't know about callbacks in Golang

2018-05-13 Thread Eduardo Moseis Fuentes
thanks it was useful > > > > -- 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.goog

[go-nuts] Actually I'm learning golang but I need involve me a project. do you guys know about a project to help it?

2018-05-13 Thread Eduardo Moseis Fuentes
I need to practice learning but also learn more please if someone can help me. I will be grateful. Greetings from Guatemala -- 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

[go-nuts] GoBkm 1.1 released

2018-05-13 Thread Thomas Bellembois
Hello, I have released a new version of my Gobkm online bookmark manager: https://github.com/tbellembois/gobkm/tree/gijgo You can download it here: https://github.com/tbellembois/gobkm/releases/tag/1.1 The major improvements are: - a new tree with Gijgo http://gijgo.com/ - a better responsive su

Re: [go-nuts] Go license and fitness for purpose

2018-05-13 Thread Matthias B.
On Sun, 13 May 2018 08:56:08 -0700 (PDT) matthewju...@gmail.com wrote: > My tools are my responsibility, so I’m wondering what stops the GCC, > Go, or other open source authors from including practical jokes. That depends on the jurisdiction and the kind of practical joke. But it's a fact that so

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

2018-05-13 Thread Matthias B.
On Fri, 11 May 2018 20:36:18 -0700 (PDT) Tashi Lu wrote: > Hi gophers, > > I faced a strange problem: os/exec always fails with `fork/exec > /usr/bin/qemu-img: invalid argument'. > > Simplified code is at https://play.golang.org/p/v1APfzmS2p9. It seems > this simplified snippet runs well with

[go-nuts] Go license and fitness for purpose

2018-05-13 Thread matthewjuran
Hello, The gccgo license has this section: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS > "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR > A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO E

[go-nuts] Re: Behavior of DotReader

2018-05-13 Thread Constantin Konstantinidis
Hello, RFC 5321 states in 3.3 : "If the mailbox specification is not acceptable for some reason, the server MUST return a reply indicating whether the failure is permanent (i.e., will occur again if the client tries to send the same address again) or temporary (i.e., the address might be

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

2018-05-13 Thread Janne Snabb
On 2018-05-13 11:34, Hugh Fisher wrote: > I still think a while { ... } loop would be a worthwhile > addition, for the reasons I've already given. Your reason from the original post was: "I know it's possible to use a for, but it doesn't feel right to me." It is not reasonable to demand everyone

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

2018-05-13 Thread Louki Sumirniy
I don't understand why you are saying this after how many times so many people have pointed out that while Condition() { ... } is expressed as for Condition() { ... } The for statement with a single clause IS a while loop. You can make it explicit by putting semicolons on each side of the

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

2018-05-13 Thread Hugh Fisher
On Sunday, May 13, 2018 at 1:20:16 AM UTC+10, matthe...@gmail.com 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. > I still think a while { ... } loop would