Re: [go-nuts] Perplexing error

2024-09-09 Thread P Padil
Got it. I missed that the signature of the SortFunc does not include a return value. Thanks! > On Sep 9, 2024, at 12:31 PM, Jan Mercl <0xj...@gmail.com> wrote: > > On Mon, Sep 9, 2024 at 9:24 PM P Padil wrote: > >> Can someone please explain to me why the following doesn’t work: >> >> slices.

Re: [go-nuts] Perplexing error

2024-09-09 Thread Jan Mercl
On Mon, Sep 9, 2024 at 9:24 PM P Padil wrote: > Can someone please explain to me why the following doesn’t work: > > slices.SortFunc(ilps, func(u, w *big.Int) int { return u.Cmp(w) }) > > I get: > slices.SortFunc(ilps, (func(u, w *big.Int) int literal)) (no value) used as > value Providing a co

[go-nuts] Perplexing error

2024-09-09 Thread P Padil
Can someone please explain to me why the following doesn’t work: slices.SortFunc(ilps, func(u, w *big.Int) int { return u.Cmp(w) }) I get: slices.SortFunc(ilps, (func(u, w *big.Int) int literal)) (no value) used as value Much appreciated! Regards, Pete -- You received this message because yo

[go-nuts] Slog handler that checks context to set log level

2024-09-09 Thread michel....@gmail.com
Hello, I've written a slog handler that checks the context for a key/value and changes the log level to debugging if the value matches. It can be found at https://github.com/MichelHollands/tracerbullet. Is this a valid use of a custom handler? Can you seen anything obviously wrong with this ap

[go-nuts] Re: Iterator handling error

2024-09-09 Thread alex-coder
Hi, Java is certainly not Go, now we have a great simplification to develop code, but you can clarify the context for making a decision in the description of the ValueListHandler J2EE pattern. Regards, пятница, 6 сентября 2024 г. в 02:11:39 UTC+3, cpasmaboiteaspam: > Hello, > > I would defini