...

Package mysort

import "cmd/compile/internal/test/testdata/mysort"
Overview
Index

Overview ▾

func F

func F()

func Sort

func Sort[T LessConstraint[T]](x []T)

type LessConstraint

type LessConstraint[T any] interface {
    Less(T) bool
}

type MyInt

type MyInt struct {
    Value int
}

func (*MyInt) Less

func (a *MyInt) Less(b *MyInt) bool