buildinfo

package module
v0.0.0-...-76ed060 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

README

buildinfo

The buildinfo package provides functions to format and retrieve Go build information in both text and JSON formats.

Documentation

Overview

Package buildinfo provides functions to format and retrieve Go build information in both text and JSON formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatJSON

func FormatJSON(info debug.BuildInfo, prefix, indent string) (string, error)

FormatJSON returns the BuildInfo as a JSON string.

func FormatText

func FormatText(bi debug.BuildInfo, quote bool, prefix, indent string) string

FormatText returns BuildInfo as formatted text.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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