Re: [go-nuts] Re: wtf

2023-08-26 Thread Aln Kapa
time "defer" was called. > > Maybe this clarifies? > https://go.dev/play/p/T2OXfmh-slj > > On Saturday, 26 August 2023 at 16:37:43 UTC+1 Aln Kapa wrote: > >> Well here is the code that works as I need, what is wrong with the >> previous one ? >> htt

Re: [go-nuts] Re: wtf

2023-08-26 Thread Aln Kapa
anew but the actual function is > not invoked." > > On Saturday, 26 August 2023 at 15:58:06 UTC+1 Aln Kapa wrote: > >> Hi All ! >> Need some help, what am I doing wrong? >> >> https://go.dev/play/p/bBlA-i1CxNO >> >> // You can edit this code! &g

[go-nuts] wtf

2023-08-26 Thread Aln Kapa
Hi All ! Need some help, what am I doing wrong? https://go.dev/play/p/bBlA-i1CxNO // You can edit this code! // Click here and start typing. package main import ( "errors" "fmt" ) type process struct { } func (p *process) close(err error) { if err != nil { fmt.Println("error") } else { fmt.Pr