Skip to content

Instantly share code, notes, and snippets.

@luizbranco luizbranco/main.go
Last active Nov 23, 2017

Embed
What would you like to do?
promptui demo step 1
package main
import (
"fmt"
"os"
"github.com/manifoldco/promptui"
)
func main() {
prompt := promptui.Prompt{
Label: "Search",
}
keyword, err := prompt.Run()
if err != nil {
fmt.Println(err)
os.Exit(1)
}
fmt.Printf("Search for %q\n", keyword)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.