fancymap

package
v0.8.7-32-g2a1fcef5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package fancymap provides a utility method which can be used to output a nice key-value list to the provided output writer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintFancyMap

func PrintFancyMap(w io.Writer, color func(...string) string, title string, entries ...FancyMapEntry)

PrintFancyMap uses the provided writer `w` and outputs a pretty printed listed based on the list of `entries`. A `title` and `success` state can be set which are prepended to the list.

Types

type FancyMapEntry

type FancyMapEntry struct {
	Key   string
	Value string
	Right string
}

FancyMapEntry represents one item in the fancy list.

Jump to

Keyboard shortcuts

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