[go-nuts] Re: finding the call graph of a method

2023-04-19 Thread Jochen Voss
Ah, found it! If I write types.NewPointer(reader.Type()) instead of just reader.Type(), things work better. On Tuesday, 18 April 2023 at 20:34:30 UTC+1 Jochen Voss wrote: > Dear all, > > I'm trying to find the callgraph of a method, using the following code: > > package main > > import ( > "log

[go-nuts] Modeling domain errors

2023-04-19 Thread 'Torben Schinke' via golang-nuts
We are a team of experienced developers and are currently discussing how we may improve our modeling of expected domain errors in our layered architecture. We are used to work with the idiomatic way of defining and matching against our custom error types. We followed and understand the design d

Re: [go-nuts] Is there a golang download for latest patch release like 1.20.x?

2023-04-19 Thread silverwind
> I’m not aware of a stable URL that always points to the latest patch release like you described (maybe there is one and someone else will chime in), but did want to mention that the json output from https://go.dev/dl/?mode=json is very useful if running in an environment where you can sprinkl

[go-nuts] Is there a gofmt flag to avoid reformatting comments?

2023-04-19 Thread Marc Adkins
I like gofmt a lot. I'm not as happy with godoc. Apparently the in the 1.19 release gofmt started reformatting comments to be consistent with godoc. I missed this in the release notes (which I may not have read, *mea culpa*). For a long time this wasn't an issue for me but recently I've had gofm

Re: [go-nuts] Is there a gofmt flag to avoid reformatting comments?

2023-04-19 Thread Ian Lance Taylor
On Wed, Apr 19, 2023 at 2:11 PM Marc Adkins wrote: > > I like gofmt a lot. I'm not as happy with godoc. Apparently the in the 1.19 > release gofmt started reformatting comments to be consistent with godoc. I > missed this in the release notes (which I may not have read, mea culpa). > > For a lon

Re: [go-nuts] Is there a gofmt flag to avoid reformatting comments?

2023-04-19 Thread 'Dan Kortschak' via golang-nuts
On Wed, 2023-04-19 at 14:30 -0700, Ian Lance Taylor wrote: > > If you give us more details perhaps there is some common ground > available.  In particular, a sequence of lines where each line is > indented will be treated as a code block, and not reformatted. Related, I'd like to reiterate the co