goburrow / cache

Mango Cache 🥭 - Partial implementation of Guava Cache in Go (golang).
BSD 3-Clause "New" or "Revised" License
580 stars 48 forks source link

feat!: use Go 1.18 Generics #35

Open maxbrunet opened 2 years ago

maxbrunet commented 2 years ago

This adds type parameters and remove the use of interface{} and type assertions for improved type safety. I have not observe any significant impact on performance (positive or negative).

It is obviously a breaking change.

nilsmagnus commented 1 year ago

Are there any plans to merge this or make a generic version of this library?

shotmk commented 1 year ago

Any plans to merge this ? :)