package
module
Version:
v0.0.0-...-96e5f4f
Opens a new window with list of versions in this module.
Published: Jan 20, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 12
Opens a new window with list of known importers.
Documentation
¶
Package constraints 参照 golang.org/x/exp/constraints, 但后者迭代太快经常使用新版本,
因此放弃此依赖转而自己写一个
Max 返回两个数中的最大值, 实际上在 1.21 开始就已经有内置的 max 了, 以防开发者不知道
Min 返回两个数中的最小值, 实际上在 1.21 开始就已经有内置的 min 了, 以防开发者不知道
Source Files
¶
Click to show internal directories.
Click to hide internal directories.