I think a more standard way to do this would be:
package main
import "fmt"
func main() {
fmt.Print("Enter text: ")
var input string
fmt.Scanln(&input)
fmt.Print(input)
}
Take a look at the scan
godoc: http://godoc.org/fmt#Scan
Scan scans text read from standard input, storing successive space-separated values into successive arguments. Newlines count as space.
Scanln is similar to Scan, but stops scanning at a newline and after the final item there must be a newline or EOF.