buildinfo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package buildinfo exposes version information injected at link time.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "0.1.0-dev"
	Commit  = ""
	Date    = ""
)

These are set with -ldflags "-X github.com/matusso/sslknife/internal/buildinfo.Version=...".

Functions

This section is empty.

Types

type Info

type Info struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	Built     string `json:"built"`
	GoVersion string `json:"go"`
	OS        string `json:"os"`
	Arch      string `json:"arch"`
}

Info describes the running binary.

func Get

func Get() Info

Get returns build information, falling back to VCS data embedded by the Go toolchain when ldflags were not supplied.

Jump to

Keyboard shortcuts

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