EmbeddingGemma 2: an open, lightweight multimodal embedding model
deepmind.google·6d ago

TL;DR
Go 1.27 introduces the ability for methods to define their own generic type parameters, enhancing the language's flexibility and usability. This update resolves a limitation from Go 1.18, allowing for more idiomatic code design.
✦ Why It Matters
Start using method-level generics in your Go code to improve API design and maintainability.
Key Takeaways
How It Works
In Go 1.27, methods can now declare their own type parameters, allowing for more flexible and cleaner code. For instance, a method can be defined as func (n *Node[T]) Map[U any]() Node[U], where U is specific to the Map method, eliminating the need to include U in the Node struct itself.
Related