prompt

package
v0.0.0-...-ceb87d2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package prompt provides functions for prompting the user to insert something.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(question string) bool

Confirm prompts the user to answer Yes or No to a particular question.

func EditGoal

func EditGoal(goal *models.Goal) *models.Goal

EditGoal prompts the user to re-insert goal fields

func EditProgress

func EditProgress(p *models.Progress) *models.Progress

EditProgress prompts the user to re-insert progress fields.

func InsertGoal

func InsertGoal(goals *[]models.Goal) (name, date, note string)

InsertGoal prompts the user to insert the fields of a new goal.

func InsertProgress

func InsertProgress(progresses *[]models.Progress) (int64, string, string)

InsertProgress prompts the user to insert the fields of a new progress.

func SelectGoal

func SelectGoal(goals *[]models.Goal) *models.Goal

SelectGoal prompts the user to select one of the goals in goals array parameter

func SelectProgress

func SelectProgress(goal *models.Goal) *models.Progress

SelectProgress prompts the user to select one of the progresses of parameter goal

Types

This section is empty.

Jump to

Keyboard shortcuts

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