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

multiSelection

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package multiSelection provides functions that help define and draw a multi-select step

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialModelMultiSelect

func InitialModelMultiSelect(options []steps.Item, selection *Selection, header string, program *program.Project) model

InitialModelMulti initializes a multiSelection step with the given data

Types

type Selection

type Selection struct {
	Choices map[string]bool
}

A Selection represents a choice made in a multiSelection step

func (*Selection) Update

func (s *Selection) Update(optionName string, value bool)

Update changes the value of a Selection's Choice

Jump to

Keyboard shortcuts

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