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

display

package
v0.4.8 Latest Latest
Warning

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

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

Documentation

Overview

Package display formats resolved values for human-facing output. A long hash - a git commit SHA or a sha256 sum - is abbreviated to a readable head…tail form so it does not dominate a log line, while versions and other short values pass through unchanged. The full value is always what clover writes to a file; this governs only what is shown.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHash

func IsHash(v string) bool

IsHash reports whether v is a git commit SHA or a sha256 sum: exactly 40 or 64 hexadecimal characters.

func Value

func Value(v string) string

Value returns v formatted for display: a commit or sha256 hash is abbreviated to a head…tail form; any other value is returned unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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