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 follo
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 receivin
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 e
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, e.g
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
documentat
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 stop
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 th