versions

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Overview

Package versions prints API and dependencies versions.

Index

Constants

This section is empty.

Variables

View Source
var (

	// Dock stores dock and deps versions.
	Dock = []Field{}
)

Functions

func Format

func Format(fields []Field) (out string)

Format formats fields content with colored output.

func Print

func Print()

Print prints versions numbers.

func SetName

func SetName(backendName string)

SetName sets the name of the program or backend used.

Types

type Field

type Field struct{ K, V string }

Field defines a printable field with its version text.

func Fields

func Fields() []Field

Fields returns the list of fields to format.

Jump to

Keyboard shortcuts

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