Re: [go-nuts] Zero-sized data type

2022-10-13 Thread Marcel Huijkman
What is the usage of that zero-sized data type? Can you give an example where that Inner field has any usage? On Wednesday, October 12, 2022 at 7:27:14 PM UTC+2 axel.wa...@googlemail.com wrote: > You can re-order the fields to get the desired effect: > https://go.dev/play/p/E1KTqVp0i-v > > On

[go-nuts] Re: go:embed question

2022-10-13 Thread Marcel Huijkman
I find this question a bit hard to understand. I think it has to do with go run and then a URL, which can't be done. Can you rephrase it? On Wednesday, October 12, 2022 at 9:37:17 AM UTC+2 esi...@gmail.com wrote: > I know that //go:embed directive reads the content of the embedable file > at

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

2022-11-29 Thread Marcel Huijkman
golangci-lint has : dogsled: # checks assignments with too many blank identifiers; default is 2 max-blank-identifiers: 0 On Monday, November 28, 2022 at 1:50:21 PM UTC+1 Jan Mercl wrote: > On Mon, Nov 28, 2022 at 1:44 PM Wojciech Muła wrote: > > > Is there any tool that would point out places

Re: [go-nuts] Underscore symbol

2022-11-05 Thread Marcel Huijkman
When I explain it during my training I always say it is a trashcan variable, anything you put in is to be ignored on the spot. On Friday, November 4, 2022 at 10:10:20 PM UTC+1 Konstantin Khomoutov wrote: > On Fri, Nov 04, 2022 at 04:58:35AM -0700, Canuto wrote: > > > I'm just starting out with

Re: [go-nuts] godoc and generic code

2022-11-04 Thread Marcel Huijkman
Perhaps update godoc: go install golang.org/x/tools/cmd/godoc@latest On Friday, November 4, 2022 at 7:18:28 AM UTC+1 tapi...@gmail.com wrote: > You may also try Golds: https://github.com/go101/golds. > Still not perfect in handling custom generic things, > but it is generally usable. > > On