title: How to use fmt.scanln read from a string separated by spaces
body: <p>Want "30 of month" but get "30"</p>
  
  <pre><code>package main
  
  import "fmt"
  
  func main() {
      var s string
      fmt.Scanln(&amp;s)
      fmt.Println(s)
      return
  }
  
  $ go run test.go
  31 of month
  31
  </code></pre>
  
  <blockquote>
    <p>Scanln is similar to Scan, but stops scanning at a newline and after the final item there must be a newline or EOF.</p>
  </blockquote>