Re: [go-nuts] Will Go be discontinued?

2022-07-25 Thread Amnon
On Monday, 25 July 2022 at 19:48:24 UTC+1 Carlos Jimenez wrote: > I think it will be discontinued soon > The average lifespan of a discontinued Google product is *4 years and 1 > month*. so should be a matter of months maybe 2.0 will be the last one > before shutdown > The average lifespan ma

Re: [go-nuts] How to check Cmd.ProcessState without triggering the race checker?

2022-07-25 Thread Steven Hartland
Looks like session already has what you need as you can check if session.Exited has been closed something like: select { case <- session.Exited: // Handle session has ended default: // Handle session hasn't ended } On Sat, 23 Jul 2022 at 21:39, TheDiveO wrote: > In my open source fi

Re: [go-nuts] Incorrect time zone DST for America/Sao_Paulo

2022-07-25 Thread Ian Lance Taylor
On Mon, Jul 25, 2022 at 3:47 PM Brendenson Andrade wrote: > > I discovered a problem with the America/Sao_Paulo time zone. > > Brazil doesn't have daylight saving time changes anymore, but Go still uses > DST -2 (the correct one is -3) for the America/Sao_Paulo time zone. > > I propose to change

[go-nuts] Incorrect time zone DST for America/Sao_Paulo

2022-07-25 Thread Brendenson Andrade
I discovered a problem with the America/Sao_Paulo time zone. Brazil doesn't have daylight saving time changes anymore, but Go still uses DST -2 (the correct one is -3) for the America/Sao_Paulo time zone. I propose to change DST for this time zone. -- You received this message because you are

Re: [go-nuts] Will Go be discontinued?

2022-07-25 Thread Carlos Jimenez
I think it will be discontinued soon The average lifespan of a discontinued Google product is *4 years and 1 month*. so should be a matter of months maybe 2.0 will be the last one before shutdown On Monday, 5 August 2013 at 15:57:04 UTC+1 quar...@gmail.com wrote: > Go Sweden Go! ;) > > /f > > >

[go-nuts] Re: How to check Cmd.ProcessState without triggering the race checker?

2022-07-25 Thread TheDiveO
Per, I fully agree for the case where you have full control over the code architecture ... in such a case the only way is to stop digging and getting out of the hole. Or have a party leadership contest instead ... just [j|ch]oking. In this particular situation I don't have control over the Go

[go-nuts] Protobuf build error with gogo - has inconsistent names structpb

2022-07-25 Thread santhoshth...@gmail.com
Hi Everyone I am importing the proto of other project into my proto file and run protoc command. I got this below error : *Go package "github.com/gogo/protobuf/types" has inconsistent names structpb (google/protobuf/struct.proto) and timestamppb (google/protobuf/timestamp.proto)* *protoc com

[go-nuts] Re: Print a json item wit a for loop

2022-07-25 Thread Brian Candler
You haven't said what you're trying to do, and the error tells you that p doesn't have a field called "jitem". Perhaps what you are trying to do is to extract a member from a structure dynamically: that is, jitem is the *name* of a struct member, only known at runtime? In that case, you can us

[go-nuts] Re: How to check Cmd.ProcessState without triggering the race checker?

2022-07-25 Thread p...@morth.org
Hi, I think you need to restructure your code, because what you're actually doing is checking whether the pid is valid or not. Since the pid is made invalid inside the Wait call (in the kernel), before ProcessState is set, there's no way to do that safely. Instead, you should avoid calling Wait