version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version provides functionality for managing tool version information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commands added in v0.0.13

Commands represents version extraction commands.

type Patterns added in v0.0.13

Patterns represents version pattern matching rules.

type Version

type Version struct {
	Commands *Commands `mapstructure:"commands" yaml:"commands"`
	Patterns *Patterns `mapstructure:"patterns" yaml:"patterns"`
	Version  string    `mapstructure:"version"  yaml:"version"  single:"true"`
}

Version defines the target version of a tool, as well as how it can be parsed.

func (*Version) UnmarshalYAML

func (v *Version) UnmarshalYAML(node ast.Node) error

UnmarshalYAML implements the yaml.Unmarshaler interface for Version.

Jump to

Keyboard shortcuts

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