semverutil

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package semverutil wraps Masterminds/semver constraint evaluation so callers across the codebase share one implementation of "does this version satisfy this constraint" rather than re-deriving it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Satisfies

func Satisfies(version, constraint string) (matched, ok bool)

Satisfies reports whether version satisfies the constraint string. ok is false when either the version or the constraint cannot be parsed, leaving the fallback to the caller: the vuln-audit path treats unparsable as a match (the registry already filtered the package), IOC matching treats it as no match (never a false positive).

Types

This section is empty.

Jump to

Keyboard shortcuts

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