steps

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package steps defines the steps involved in setting up a Go project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	Title string
	Desc  string
}

Option represents a single option that can be chosen in a step. It includes the title of the option and a description.

type StepSchema

type StepSchema struct {
	StepName string
	Options  []Option
	Headers  string
	Field    *string
}

StepSchema represents a single step in the setup process. It includes the name of the step, the options available in this step, the headers to be displayed, and a pointer to the field where the user's choice will be stored.

type Steps

type Steps struct {
	Steps map[string]StepSchema
}

Steps is a collection of StepSchema. It represents all the steps involved in the setup process.

func InitSteps

func InitSteps() *Steps

InitSteps initializes the steps of the setup process. The Steps struct includes all the steps involved in the setup process.

Jump to

Keyboard shortcuts

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