godock: github.com/sqp/godock/libs/text/versions Index | Files

package versions

import "github.com/sqp/godock/libs/text/versions"

Package versions prints API and dependencies versions.


Package Files



var (

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

func Fields Uses

func Fields() []Field

Fields returns the list of fields to format.

func Format Uses

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

Format formats fields content with colored output.

func Print Uses

func Print()

Print prints versions numbers.

func SetName Uses

func SetName(backendName string)

SetName sets the name of the program or backend used.

type Field Uses

type Field struct{ K, V string }

Field defines a printable field with its version text.

Package versions imports 5 packages (graph) and is imported by 3 packages. Updated 2017-10-03. Refresh now. Tools for package owners.