package main
import("fmt""github.com/c-bata/go-prompt")funccompleter(d prompt.Document)[]prompt.Suggest {
s :=[]prompt.Suggest{{Text:"users", Description:"Store the username and age"},{Text:"articles", Description:"Store the article text posted by user"},{Text:"comments", Description:"Store the text commented to articles"},}return prompt.FilterHasPrefix(s, d.GetWordBeforeCursor(),true)}funcmain(){
fmt.Println("Please select table.")
t := prompt.Input("> ", completer)
fmt.Println("You selected "+ t)}