comparablex

package
v0.0.0-...-f59f4bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

同样是内置的error类型,就能给变量使用

Functions

func ReflectComparable

func ReflectComparable(v interface{}) bool

func TypesComparable

func TypesComparable() bool

Types

type C1

type C1 interface {
	comparable

	[]int
}

这个C1可比较吗?

type Set

type Set[E comparable] []E // 可以用做类型参数的约束

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL