steps

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package steps provides a wizard style step progress bar.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func View

func View(m Model) (s string)

View function.

Types

type Model

type Model struct {
	// Steps is the set of step labels.
	Steps []string

	// Step is the index of the current step.
	Step int

	// Prefix is a string applied to the beginning of each line.
	Prefix string
}

Model is the step model.

Jump to

Keyboard shortcuts

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