Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package version reports the binary's version. Releases set it with -ldflags "-X github.com/mmedum/gitlab-mcp/internal/version.Version=1.2.3".

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set through ldflags. A local build leaves it "dev".

Functions

func Info

func Info() string

Info is the line --version prints.

func Module

func Module(path string) string

Module returns the version of a dependency this binary was built with, or "unknown". The schema dump uses it for the MCP SDK, because a constant naming that version goes stale on the next upgrade.

func String

func String() string

String is the version to report.

`go install module@v1.2.3` applies no ldflags, so a binary installed that way would call itself "dev" forever. Go records the module version it was built from, and that is the answer in that case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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