INNER CODE UNIT · Go

main

manifoldco/promptui · _examples/confirm/main.go:9

func main() {
	prompt := promptui.Prompt{
		Label:     "Delete Resource",
		IsConfirm: true,
	}

	result, err := prompt.Run()

	if err != nil {
		fmt.Printf("Prompt failed %v\n", err)
		return
	}

	fmt.Printf("You choose %q\n", result)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…