Skip to content

Match

方法 · ConstraintSet

go
func (cs *ConstraintSet) Match(v *Version) bool

📖 说明

Match 判断版本是否满足所有约束(AND 逻辑)

参数

  • v:要检查的版本对象

返回

  • bool:如果版本满足所有约束则返回 true

🔗 同类方法


源码位置

定义于 constraint.go

基于 MIT 协议发布