Skip to content

TheWolfNL/go-multiplechoice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.