interactive

package
v0.0.0-...-d03cab4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonRequirement

type CommonRequirement struct {
	// contains filtered or unexported fields
}

func NewCommonRequirement

func NewCommonRequirement(requirement func() bool) CommonRequirement

func (CommonRequirement) Satisfied

func (cr CommonRequirement) Satisfied() bool

type Element

type Element struct {
	// contains filtered or unexported fields
}

func NewElement

func NewElement(action func(), requirements ...Requirement) Element

func (Element) RunAction

func (e Element) RunAction()

type Requirement

type Requirement interface {
	Satisfied() bool
}

Jump to

Keyboard shortcuts

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