Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSemVer ¶
Compare a version to a semantic version constraint using the [Masterminds semver constraints](https://github.com/Masterminds/semver?tab=readme-ov-file#checking-version-constraints). Provide a version string and a constraint and if the semver is within the constraint a boolean response of whether the version is constrained or not will occur. Any errors from the constraint or version will propagate through the framework errors and the value will be false.
func XPath ¶
XPath returns a single HTML XPath match inner text, allowing the extraction of HTML nodes and attributes. This is useful in situations where you might reach for regular expressions, but want to have a bit more reliability if the HTML document is consistent. The function will return an empty string and false boolean if the HTML node cannot be found or the XPath query is invalid, the latter of which should only occur during development.
Types ¶
This section is empty.