version

package
v0.0.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 2 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 reports which build of AgentShield is running. Release and image builds set Version and Commit with

-ldflags "-X github.com/agentshield-dev/agentshield/internal/version.Version=v1.2.3
          -X github.com/agentshield-dev/agentshield/internal/version.Commit=<sha>"

Other builds fall back to the module version and VCS revision that the Go toolchain stamps into the binary, when it has them.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "unknown"
)

Version and Commit are set at link time; see the package documentation.

Functions

func String

func String() string

String returns "<version> (commit <commit>)" for --version output and the startup log line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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