Skip to content

Satisfies

方法 · ConstraintUnion

go
func (cu *ConstraintUnion) Satisfies(v *Version) bool

📖 说明

Satisfies 判断版本是否满足约束联合

这是 Match(v) 的语义化别名,与 Version.Satisfies() 对称。

参数

  • v:要检查的版本对象

返回

  • bool:如果版本满足任意约束集则返回 true

🔗 同类方法


源码位置

定义于 constraint.go

基于 MIT 协议发布