Re: [go-nuts] where is GOROOT set?

2022-11-28 Thread thepud...@gmail.com
Hi Pat, FWIW, I pulled together a TLDR on modules some time ago that I think hits upon each of the different issues you encountered in this thread. It also tries to summarize the core modules concepts, along with a bit of advice on how to stay on the "happy path" when starting out with Go modul

Re: [go-nuts] How to cast *interface{} into *T ?

2022-11-28 Thread Denis P
Thanks guys. I have finished my homework thanks to you: https://pkg.go.dev/github.com/fairking/di_plus On Friday, 25 November 2022 at 16:35:50 UTC pattnaik...@gmail.com wrote: > If you create a wrapper interface type and create *generic constraints* with > the *MyWrapper* struct then it'll type

Re: [go-nuts] Tool showing all assignemnts to the blank identifier

2022-11-28 Thread Jan Mercl
On Mon, Nov 28, 2022 at 1:44 PM Wojciech Muła wrote: > Is there any tool that would point out places with > an assignment to the blank identifier? > > I'd like to spot possible refactoring/debug leftovers, > like `_ := func() {}` or unused imports. > > I went through the staticcheck list of check

[go-nuts] Tool showing all assignemnts to the blank identifier

2022-11-28 Thread Wojciech Muła
Hi! Is there any tool that would point out places with an assignment to the blank identifier? I'd like to spot possible refactoring/debug leftovers, like `_ := func() {}` or unused imports. I went through the staticcheck list of checks, but didn't find anything similar. cheers Wojciech -- You