version

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: GPL-3.0, LGPL-3.0 Imports: 6 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 implements reading of build version information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientName

func ClientName(clientIdentifier string) string

ClientName creates a software name/version identifier according to common conventions in the Ethereum p2p network.

func Info

func Info() (version, vcs string)

runtimeInfo returns build and platform information about the current binary.

If the package that is currently executing is a prefixed by our go-ethereum module path, it will print out commit and date VCS information. Otherwise, it will assume it's imported by a third-party and will return the imported version and whether it was replaced by another module.

Types

type VCSInfo

type VCSInfo struct {
	Commit string // head commit hash
	Date   string // commit time in YYYYMMDD format
	Dirty  bool
}

VCSInfo represents the git repository state.

func VCS

func VCS() (VCSInfo, bool)

VCS returns version control information of the current executable.

Jump to

Keyboard shortcuts

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