title: How do I make a GO program wait until there is user input?
body: <pre><code>package main
  
  import (
      "bufio"
      "fmt"
      "os"
  )
  
  func main() {
      fmt.Println("insert y value here: ")
      input := bufio.NewScanner(os.Stdin)
      fmt.Println(input.Text)
  }
  </code></pre>
  
  <p>How do I make the program wait, until the user inputs data?</p>