Hi everyone I've been having a good time learning Go! I hope to learn and contribute here!
I'm looking to derive functions from an interface that I'm using as a constraint for generic types but can't figure out if it's possible to do it in the style that I'm after.
Here's the interface:
type Comparable[T any] interface {
Lesser(T) bool
Eq(T) bool
}```
and here's a derived function
```go
func Greater[T Comparable[T]](a, b T) bool {
return !a.Lesser(b) && !a.Eq(b)
}```
I'm looking to have the derived function be applied something like this though instead:
```go
a.Greater(b)
Does anyone know if this is currently possible? Thanks for any tips 🙂