Re: [go-nuts] Traversing AST with type information?

2020-09-27 Thread Glen Mailer
ise ratio of my functions On Sunday, 27 September 2020 at 22:28:03 UTC+1 kortschak wrote: > On Sun, 2020-09-27 at 11:45 -0700, Glen Mailer wrote: > > > > Hello! > > > > I'm playing about with some go tooling, and I wanted to parse a > > package with type informatio

[go-nuts] Traversing AST with type information?

2020-09-27 Thread Glen Mailer
Hello! I'm playing about with some go tooling, and I wanted to parse a package with type information to inspect it and derive some insights from the data. I found the packages tool - https://godoc.org/golang.org/x/tools/go/packages - which on the surface appears to be exactly what I wanted.

[go-nuts] Why does PipeWriter.CloseWithError pretend to return an error?

2020-07-01 Thread Glen Mailer
Hi everyone, We got bitten by a bug recently when using PipeWriter.CloseWithError . We incorrectly assumed it would pass-through the error it was passed. The docs do say that it will always return `nil`, but does anyone know why it has an `