[go-nuts] Generic memory repository

2025-02-04 Thread Victor ManuelVituGiordano
Hi there! ¿How you doing? I'm trying to implement a simple in-memory storage, that holds entities under a map. The entities shall be identificables, as they have an Id. And I want that id to be set by the underlying persistent subsystem on creation time. So I wrote this type Identificable inte

Re: [go-nuts] Testing specific file in a package

2024-07-02 Thread Victor ManuelVituGiordano
Thanks Arkadiusz. Good tip. El domingo, 30 de junio de 2024 a las 16:38:44 UTC-3, Arkadiusz Drabczyk escribió: > On Sat, Jun 29, 2024 at 11:14:56AM -0300, Victor Manuel Giordano wrote: > > Thank you all for the feedback. It is appreciated. > > > > • So it is not possible via the golang platfo

[go-nuts] Testing specific file in a package

2024-06-28 Thread Victor ManuelVituGiordano
Hi guys! How you are doing? I struggle with performing all the tests written in a file that requires symbols defined on other files of the same package. For example $ go test practice_resource_test.go # command-line-arguments [command-line-arguments.test] ./practice_resource_test.go:11:12: undef

[go-nuts] Embedding an interface with a function type

2024-02-06 Thread Victor ManuelVituGiordano
Hi Goperhs! How you doing? Hope just fine! I'm wondering why the language allow me to write something like this: type IncFunc func(a int) int type Incrementor interface { IncFunc *// <-- THIS is allowed* IncQuantity() int } (RTR example here ) I don't get how