Skip to content

Match

方法 · Constraint

go
func (c *Constraint) Match(v *Version) bool

📖 说明

Match 判断版本是否满足约束条件

参数

  • v:要检查的版本对象

返回

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

🔗 同类方法


源码位置

定义于 constraint.go

基于 MIT 协议发布