code: func AskYesNo(question string, noIsDefault bool) bool {
  	var s string
  	alternatives := "Yn"
  	if noIsDefault {
  		alternatives = "yN"
  	}
  	fmt.Printf(question + " [" + alternatives + "] ")
  	fmt.Scanf("%s", &s)
  	if noIsDefault {
  		// Anything that isn't yes is "no" (false)
  		return s == "Y" || s == "y"
  	}
  	// Anything that isn't no is "yes" (true)
  	return !(s == "N" || s == "n")
  }
docs: // Ask a yes/no question, don't wait for newline