version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package version owns the executable identity shared by commands and evidence.

Index

Constants

View Source
const Module = "github.com/zoumo/agent-sdk-testify"

Variables

This section is empty.

Functions

func ExactModuleVersion

func ExactModuleVersion(value string) bool

ExactModuleVersion reports whether value is a release or pseudo-version accepted by the Go module version grammar.

func String

func String() string

String returns the tagged executable version, or "devel" outside a release.

func ValidCommitTime

func ValidCommitTime(value string) bool

ValidCommitTime reports whether value is an RFC 3339 VCS commit timestamp.

func ValidModuleSum

func ValidModuleSum(value string) bool

ValidModuleSum reports whether value is an exact h1 module content sum.

func ValidRevision

func ValidRevision(value string) bool

ValidRevision reports whether value is a full Git object revision.

Types

type BuildIdentity

type BuildIdentity struct {
	Module    string
	Version   string
	Sum       string
	Revision  string
	Time      string
	GoVersion string
}

BuildIdentity is the exact source identity of the embedded library.

func ReadEmbeddedIdentity

func ReadEmbeddedIdentity() (BuildIdentity, error)

ReadEmbeddedIdentity returns the source identity recorded by Go build info.

func ResolveEmbeddedIdentity

func ResolveEmbeddedIdentity(provided *EmbeddedIdentity) (BuildIdentity, error)

ResolveEmbeddedIdentity reads build information and uses provided only when the module is absent. A self-proven identity remains authoritative.

type EmbeddedIdentity

type EmbeddedIdentity struct {
	Version   string
	Sum       string
	Revision  string
	Time      string
	GoVersion string
}

EmbeddedIdentity is the exact module identity supplied by a library consumer when the current test binary omits this module from its build dependencies.

Jump to

Keyboard shortcuts

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