code: func (w *wizard) readURL() *url.URL {
  	for {
  		fmt.Printf("> ")
  		text, err := w.in.ReadString('\n')
  		if err != nil {
  			log.Crit("Failed to read user input", "err", err)
  		}
  		uri, err := url.Parse(strings.TrimSpace(text))
  		if err != nil {
  			log.Error("Invalid input, expected URL", "err", err)
  			continue
  		}
  		return uri
  	}
  }
docs: // readURL reads a single line from stdin, trimming if from spaces and trying to
  // interpret it as a URL (http, https or file).