go-pkgz / lcw

Loading Cache Wrapper
https://go-pkgz.umputun.dev/lcw/
MIT License
20 stars 5 forks source link

Proposal: Support custom key types with use of Generics (go18+) #39

Closed shotmk closed 6 months ago

shotmk commented 1 year ago

With introduction of generics to golang, can this lib implement support for custom structs as key ?

paskal commented 1 year ago

Please see discussion in https://github.com/go-pkgz/lcw/issues/31. If you can make it work, feel free to send a PR. The code I've prepared is in the https://github.com/go-pkgz/lcw/tree/paskal/generics.