- fatih/color - Make your output more fancy with different colours
- codegangsta/cli - Used to build CLI apps, and supports sub-commands
- k0kubun/go-readline - Support for GNU Readline for Golang
- howeyc/gopass - getpasswd support for Golang
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {
reader := bufio.NewReader(os.Stdin)
fmt.Print("What is your favourite color?: ")
color, _ := reader.ReadString('\n')
fmt.Println("My favourite color is", strings.Replace(color, "\n", "", 1), "too!")
}