/go-multiplechoice

Go Multiple Choice for CLI applications

Primary LanguageGoMIT LicenseMIT

Go-MultipleChoice godoc

If you're building a CLI application in GO and require the user to make a selection out of given options, you can use this package.

Demo

Install 📦

import (
    "github.com/thewolfnl/go-multiplechoice"
)

Usage 🔘

// Single selection
selection := MultipleChoice.Selection("Select one: ", []string{"option1", "option2", "option3"}])

// Multi selection
selections := MultipleChoice.MultiSelection("Select one: ", []string{"option1", "option2", "option3"}])

Suggestions 💭

Please create an issue if you have a suggestion.