README ¶ interactive_confirm/demo package main import ( "github.com/pterm/pterm" ) func main() { result, _ := pterm.DefaultInteractiveConfirm.Show() pterm.Println() // Blank line pterm.Info.Printfln("You answered: %s", boolToText(result)) } func boolToText(b bool) string { if b { return pterm.Green("Yes") } return pterm.Red("No") } Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files ci.go main.go Click to show internal directories. Click to hide internal directories.