version

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

version gets version information embedded during the build process in the executable, e.g. revision and revision status from the VCS.

This codebase has been modified from its original form, taken from autostrada.dev aka. Alex Edwards (2022).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRevision

func GetRevision() string

GetRevision, returns a string with the commit hash used to build the executable. If the executable was built with files with some modifications related to the last commit, the suffix '-dirty' will be added to the revision returned. If no revision information could be retrieved, the the method returns 'unavailable'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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