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 6
templates := promptui.SelectTemplates{
Active: `🍕 {{ .Title | cyan | bold }}`,
Inactive: ` {{ .Title | cyan }}`,
Selected: `{{ "✔" | green | bold }} {{ "Recipe" | bold }}: {{ .Title | cyan }}`,
}
list := promptui.Select{
Label: "Recipe",
Items: res.Results,
Templates: &templates,
}
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.