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

buildinfo

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 3 Imported by: 1

README

This package provides a runtime/debug.BuildInfo Formatter. Usage,

	if bi := buildinfo.New(); bi.Version() != buildinfo.Unavailable {
		fmt.Println(bi)
	} else {
		fmt.Println(buildinfo.Unavailable)
	}

© 2018-2019 Platina Systems, Inc. All rights reserved. Use of this source code is governed by this BSD-style LICENSE.

Documentation

Overview

This package provides a runtime/debug.BuildInfo Formatter. Usage,

if bi := buildinfo.New(); bi.Version() != buildinfo.Unavailable {
	fmt.Println(bi)
} else {
	fmt.Println(buildinfo.Unavailable)
}

Index

Constants

View Source
const Unavailable = "unavailable"

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	*debug.BuildInfo
}

func New

func New() BuildInfo

func (BuildInfo) Format

func (bi BuildInfo) Format(f fmt.State, c rune)

func (BuildInfo) Version

func (bi BuildInfo) Version() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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