Re: [go-nuts] x/mobile: avoid to catch sigabort signal

2023-09-08 Thread Danilo bestbug
Ehy Ian, thanks for the response. Apology if I was not clear, I try to explain in a different way but it's hard for me too since I'm not 100% confident about what it's happening here exactly, I'm tring to follow the trace but any feedback is more than welcome. The problem I'm facing is the

Re: [go-nuts] x/mobile: avoid to catch sigabort signal

2023-09-08 Thread Ian Lance Taylor
On Thu, Sep 7, 2023 at 11:41 PM Danilo bestbug wrote: > > Some weeks ago I've opened a possible bug on github and the only response I > received is a reference to > "This looks like the program (the Go runtime, or not) intentionally crashing > when it is already in a bad condition, like

[go-nuts] Re: GO language best practice document

2023-09-08 Thread peterGo
Go Style | styleguide https://google.github.io/styleguide/go/index peter On Friday, September 8, 2023 at 9:05:12 AM UTC-4 Alexandre Roy wrote: > Hi, > > I want to start a new web application using GO with AWS Lambda, but first > I want to learn the GO language. I mostly have C / Python

Re: [go-nuts] How to constrain an integral type's values

2023-09-08 Thread 'Thomas Bushnell BSG' via golang-nuts
I recommend using strings as the base type for things like this, rather than ints. There is no need to use ints, just because that's what C uses. Thomas On Fri, Sep 8, 2023 at 3:24 AM 'Mark' via golang-nuts < golang-nuts@googlegroups.com> wrote: > I often create small multi-value flag types,

[go-nuts] GO language best practice document

2023-09-08 Thread Alexandre Roy
Hi, I want to start a new web application using GO with AWS Lambda, but first I want to learn the GO language. I mostly have C / Python experience. I started reading https://go.dev/doc/effective_go, but as mentioned in the following issue https://github.com/golang/go/issues/28782, this

Re: [go-nuts] How to constrain an integral type's values

2023-09-08 Thread Jan Mercl
On Fri, Sep 8, 2023 at 9:24 AM 'Mark' via golang-nuts wrote: > Is there a compile-time solution for this that I've missed? No. Go does not have enum types. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and

[go-nuts] How to constrain an integral type's values

2023-09-08 Thread 'Mark' via golang-nuts
I often create small multi-value flag types, e.g. ```go type mode uint8 const ( argMode mode = iota baseMode cmdMode ) ``` The problem is that if I write, say, `m := baseMode`, although `m` has the correct type (`mode`), there is no way to constrain its values to the consts I've declared. In

[go-nuts] x/mobile: avoid to catch sigabort signal

2023-09-08 Thread Danilo bestbug
Hello gophers, Some weeks ago I've opened a possible bug on github and the only response I received is a reference to "This looks like the program (the Go runtime, or not) intentionally crashing when it is already in a bad condition, like receiving